From 275903e8ecc9161c6c690a83ca5b1eb7b67899a4 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Fri, 20 Sep 2024 22:05:49 +0530 Subject: Added git information to zsh prompt. Changed configuration of rofi to be more consistent with the other windows. Changed mod key to alt key. --- sxhkd/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sxhkd/default.nix') diff --git a/sxhkd/default.nix b/sxhkd/default.nix index 00621bf..762c6b0 100644 --- a/sxhkd/default.nix +++ b/sxhkd/default.nix @@ -3,16 +3,20 @@ { services.sxhkd.enable = true; + xdg.configFile."sxhkd/scripts/show-keybindings.sh" = { + source = ./scripts/show-keybindings.sh; + executable = true; + }; + services.sxhkd.keybindings = let modKey = "alt"; createKeybinding = keybinding: description: "# ${description}\n${modKey} + ${keybinding}"; in { - # TODO: Currently not working properly ${(createKeybinding - "i" + "s" "Show keybindings.")} - = ''awk '/^#/{desc=substr($0, 3)} /^[a-z]/ { cmd=$0; print cmd " : " desc }' ~/.config/sxhkd/sxhkdrc | rofi -dmenu -i -p "Keybindings"''; + = "$HOME/.config/sxhkd/scripts/show-keybindings.sh"; ${(createKeybinding "r" -- cgit v1.2.3