From 3b09a24e0a5733f4fb527120a9c710f511862023 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sun, 13 Jul 2025 03:56:55 +0530 Subject: Removed unecessary junk. --- modules/graphical/sxhkd/default.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 modules/graphical/sxhkd/default.nix (limited to 'modules/graphical/sxhkd/default.nix') diff --git a/modules/graphical/sxhkd/default.nix b/modules/graphical/sxhkd/default.nix new file mode 100644 index 0000000..1b362cf --- /dev/null +++ b/modules/graphical/sxhkd/default.nix @@ -0,0 +1,37 @@ +{ pkgs, config, lib, ... }: + +{ + config = lib.mkIf config.graphical.enable { + services.sxhkd.enable = true; + services.sxhkd.keybindings = + let + modKey = "alt"; + createKeybinding = keybinding: description: command: { + "# ${description}\n${modKey} + ${keybinding}" = command; + }; + in lib.mkMerge [ + (import ./keybindings/bspwm.nix { inherit pkgs createKeybinding 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") + + (createKeybinding + "t" + "Launch terminal." + "kitty") + + # (createKeybinding + # "f" + # "Launch File Manager." + # "kitty --title 'File Manager' --class floating-termial -e ${config.tools.file-manager.command}") + ]; + }; +} -- cgit v1.2.3