Browse Source

hmgr: herbstluft

dev_01_initial
Heiko Blobner 2 years ago
parent
commit
2fc0d8a669
  1. 17
      home-manager/modules/desktop/herbstluftwm.nix
  2. 2
      home-manager/pfke_at_errol.nix

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

@ -0,0 +1,17 @@
{config, lib, pkgs, ...}:
let
# A list is used because it preserves ordering
tags = [
{ name = "tag 1"; key = "something"; }
{ name = "tag 2"; }
];
# Attribute set of { <keybind> = "use <tag>"; }
keybinds = let
tagsWithKeybinds = lib.filter (lib.hasAttr "key") tags;
in lib.listToAttrs (map (x: lib.nameValuePair x.key "use ${x.name}") tagsWithKeybinds);
in
{
xsession.windowManager.herbstluftwm.enable = true;
xsession.windowManager.herbstluftwm.keybinds = keybinds;
xsession.windowManager.herbstluftwm.tags = lib.catAttrs "name" tags;
}

2
home-manager/pfke_at_errol.nix

@ -9,7 +9,7 @@ in {
./modules/cli/bat.nix
./modules/cli/starship.nix
./modules/cli/zsh.nix
./modules/desktop/hprland
./modules/desktop/herbstluftwm.nix
./modules/keychain.nix
];
monitors = [

Loading…
Cancel
Save