Added autotiling

This commit is contained in:
Bryan Ramos 2024-01-27 07:03:07 -05:00
parent be58607648
commit afaa1d11fc
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
2 changed files with 9 additions and 7 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: { config, lib, pkgs, ... }:
let let
modifier = config.wayland.windowManager.sway.config.modifier; modifier = config.wayland.windowManager.sway.config.modifier;
@ -63,7 +63,7 @@ in
floating.border = 0; floating.border = 0;
window.border= 0; window.border= 0;
keybindings = lib.mkOptionDefault { keybindings = lib.mkOptionDefault {
"${modifier}+q" = "kill"; "${modifier}+q" = "kill";
"Print" = "exec grim ~/Pictures/screenshot-$(date +'%Y%m%d-%H%M%S').png"; "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"] { for_window [app_id="one.alynx.showmethekey" title="Floating Window - Show Me The Key"] {
floating enable floating enable
sticky enable sticky enable
} }
exec_always ${pkgs.autotiling}/bin/autotiling
''; '';
} }

View file

@ -1,10 +1,10 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
with lib; with lib;
let let
cfg = config.modules.gui; cfg = config.modules.gui;
in in
{ options.modules.gui = { enable = mkEnableOption "gui"; }; { options.modules.gui = { enable = mkEnableOption "gui"; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
wayland.windowManager.sway = import ./config/sway.nix { inherit pkgs config lib; }; wayland.windowManager.sway = import ./config/sway.nix { inherit pkgs config lib; };
@ -26,12 +26,13 @@ in
programs.btop.enable = true; programs.btop.enable = true;
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
xdg-utils xdg-utils
grim grim
slurp slurp
wl-clipboard wl-clipboard
autotiling
imv imv
gimp gimp