Browse Source

hmgr: herbstluft

dev_01_initial
Heiko Blobner 2 years ago
parent
commit
e4a8443c39
  1. 22
      home-manager/modules/desktop/herbstluftwm.nix

22
home-manager/modules/desktop/herbstluftwm.nix

@ -4,6 +4,7 @@ let
tags = [ tags = [
{ name = "tag 1"; key = "something"; } { name = "tag 1"; key = "something"; }
{ name = "tag 2"; } { name = "tag 2"; }
...
]; ];
# Attribute set of { <keybind> = "use <tag>"; } # Attribute set of { <keybind> = "use <tag>"; }
keybinds = let keybinds = let
@ -11,7 +12,22 @@ let
in lib.listToAttrs (map (x: lib.nameValuePair x.key "use ${x.name}") tagsWithKeybinds); in lib.listToAttrs (map (x: lib.nameValuePair x.key "use ${x.name}") tagsWithKeybinds);
in in
{ {
xsession.windowManager.herbstluftwm.enable = true; xsession = {
xsession.windowManager.herbstluftwm.keybinds = keybinds; windowManager = {
xsession.windowManager.herbstluftwm.tags = lib.catAttrs "name" tags; herbstluftwm = {
enable = true;
keybinds = ''
Mod4-Control-h = "resize left +0.02"
Mod4-Control-j = "resize down +0.02"
Mod4-Control-k = "resize up +0.02"
Mod4-Control-l = "resize right +0.02"
Mod4-Control-Left = "resize left +0.02"
Mod4-Control-Down = "resize down +0.02"
Mod4-Control-Up = "resize up +0.02"
Mod4-Control-Right = "resize right +0.02"
'';
tags = lib.catAttrs "name" tags;
};
};
};
} }

Loading…
Cancel
Save