From b553b7633a838f6ad023fb2430c95933ea512e4a Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Wed, 26 Nov 2025 13:49:55 +0530 Subject: Added volume, brightness and player controls. --- modules/graphical/sxhkd/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'modules/graphical/sxhkd/default.nix') diff --git a/modules/graphical/sxhkd/default.nix b/modules/graphical/sxhkd/default.nix index a65d3fa..d19f01f 100644 --- a/modules/graphical/sxhkd/default.nix +++ b/modules/graphical/sxhkd/default.nix @@ -5,12 +5,16 @@ services.sxhkd.enable = true; services.sxhkd.keybindings = let - modKey = "alt"; - createKeybinding = keybinding: description: command: { - "# ${description}\n${modKey} + ${keybinding}" = command; + 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/pamixer.nix { inherit pkgs createKeybindingBase lib; }) + (import ./keybindings/playerctl.nix { inherit pkgs createKeybindingBase lib; }) (createKeybinding "s" -- cgit v1.2.3