From afaa1d11fc037ca2c8310c176ec1b8d45c769b74 Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Sat, 27 Jan 2024 07:03:07 -0500 Subject: [PATCH] Added autotiling --- homeConfig/modules/gui/config/sway.nix | 7 ++++--- homeConfig/modules/gui/default.nix | 9 +++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/homeConfig/modules/gui/config/sway.nix b/homeConfig/modules/gui/config/sway.nix index 3c7a696..4a2b629 100644 --- a/homeConfig/modules/gui/config/sway.nix +++ b/homeConfig/modules/gui/config/sway.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: let modifier = config.wayland.windowManager.sway.config.modifier; @@ -63,7 +63,7 @@ in floating.border = 0; window.border= 0; - + keybindings = lib.mkOptionDefault { "${modifier}+q" = "kill"; "Print" = "exec grim ~/Pictures/screenshot-$(date +'%Y%m%d-%H%M%S').png"; @@ -78,6 +78,7 @@ in for_window [app_id="one.alynx.showmethekey" title="Floating Window - Show Me The Key"] { floating enable sticky enable - } + } + exec_always ${pkgs.autotiling}/bin/autotiling ''; } diff --git a/homeConfig/modules/gui/default.nix b/homeConfig/modules/gui/default.nix index 151f0c0..c75e5b3 100644 --- a/homeConfig/modules/gui/default.nix +++ b/homeConfig/modules/gui/default.nix @@ -1,10 +1,10 @@ { pkgs, lib, config, ... }: with lib; -let +let cfg = config.modules.gui; - -in + +in { options.modules.gui = { enable = mkEnableOption "gui"; }; config = mkIf cfg.enable { wayland.windowManager.sway = import ./config/sway.nix { inherit pkgs config lib; }; @@ -26,12 +26,13 @@ in programs.btop.enable = true; fonts.fontconfig.enable = true; - + home.packages = with pkgs; [ xdg-utils grim slurp wl-clipboard + autotiling imv gimp