diff options
| author | Arpit Chakladar <arpitchakladar@proton.me> | 2026-03-13 16:31:58 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@proton.me> | 2026-03-13 16:31:58 +0530 |
| commit | e0c724f14042bd90b9eb5687a351c9945b74fc9b (patch) | |
| tree | 69a28737123f0db807b4522688e90817a6c555bf /modules/desktop/sxhkd/default.nix | |
| parent | d0936afa8fea372bc2d3114499ad10d354089c38 (diff) | |
| download | home-manager-config-e0c724f14042bd90b9eb5687a351c9945b74fc9b.tar.gz home-manager-config-e0c724f14042bd90b9eb5687a351c9945b74fc9b.zip | |
Moving to xremap for shortcuts from sxhkd. Added the basic configs
Diffstat (limited to 'modules/desktop/sxhkd/default.nix')
| -rw-r--r-- | modules/desktop/sxhkd/default.nix | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/modules/desktop/sxhkd/default.nix b/modules/desktop/sxhkd/default.nix deleted file mode 100644 index fe8acbb..0000000 --- a/modules/desktop/sxhkd/default.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ - pkgs, - config, - lib, - ... -}: - -{ - config = lib.mkIf config.desktop.enable { - services.sxhkd.enable = true; - services.sxhkd.keybindings = - let - modKey = "super"; - createKeybinding = keybinding: createKeybindingBase "${modKey} + ${keybinding}"; - createKeybindingBase = keybinding: description: command: { - "# ${description}\n${keybinding}" = command; - }; - in - lib.mkMerge [ - (import ./keybindings/brightnessctl.nix { inherit pkgs createKeybindingBase lib; }) - (import ./keybindings/bspwm.nix { inherit pkgs createKeybinding lib; }) - (import ./keybindings/maim.nix { inherit pkgs createKeybinding lib; }) - (import ./keybindings/pamixer.nix { inherit pkgs createKeybindingBase lib; }) - (import ./keybindings/playerctl.nix { inherit pkgs createKeybindingBase lib; }) - - (createKeybinding "s" "Show keybindings." - "kitty --title 'Keybindings' --class floating-termial -e ${pkgs.writeShellScript "keybindings.sh" (builtins.readFile ./scripts/keybindings.sh)}" - ) - - (createKeybinding "r" "Application launcher." "rofi -show drun") - - (createKeybinding "t" "Launch terminal." "kitty") - - (createKeybinding "f" "Launch File Manager." - "kitty --title 'File Manager' --class floating-termial -e nnn" - ) - ]; - }; -} |
