diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-20 22:05:49 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-20 22:05:49 +0530 |
| commit | 275903e8ecc9161c6c690a83ca5b1eb7b67899a4 (patch) | |
| tree | 02a4550da8b9beea909c131d45e5a8e9aa600be9 /sxhkd/scripts/show-keybindings.sh | |
| parent | 605b9659932356d67a26118438ae513a14f4c895 (diff) | |
| download | home-manager-config-275903e8ecc9161c6c690a83ca5b1eb7b67899a4.tar.gz home-manager-config-275903e8ecc9161c6c690a83ca5b1eb7b67899a4.zip | |
Added git information to zsh prompt.
Changed configuration of rofi to be more consistent with the other windows.
Changed mod key to alt key.
Diffstat (limited to 'sxhkd/scripts/show-keybindings.sh')
| -rw-r--r-- | sxhkd/scripts/show-keybindings.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sxhkd/scripts/show-keybindings.sh b/sxhkd/scripts/show-keybindings.sh new file mode 100644 index 0000000..db7863d --- /dev/null +++ b/sxhkd/scripts/show-keybindings.sh @@ -0,0 +1,13 @@ +#!/bin/sh +SXHKD_CONFIG="$HOME/.config/sxhkd/sxhkdrc" + +awk ' + /^#/ { + desc = substr($0, 3) + } + /^[[:alnum:]]/ { + cmd = $0 + getline + print cmd " : " desc + } +' "$SXHKD_CONFIG" | rofi -dmenu -i -p "Keybindings" |
