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
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
'';
}

View file

@ -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