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/scripts/show-keybindings.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sxhkd/scripts/show-keybindings.sh (limited to 'sxhkd/scripts/show-keybindings.sh') 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" -- cgit v1.2.3