aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2022-11-17 10:56:25 -0800
committerclarkzjw <[email protected]>2022-11-17 10:56:25 -0800
commitd2d735742ca61b211c9b48a2209d36395daebcf4 (patch)
treebda27729a1bbac3ab354a1f10d4885899cdbf967 /dot_config/i3/scripts/executable_keyhint-2
parenta6d2e5e6fb9adc84c32e86630b4846b1765c7d77 (diff)
downloaddotfiles-d2d735742ca61b211c9b48a2209d36395daebcf4.tar.gz
+ add existing config
Diffstat (limited to 'dot_config/i3/scripts/executable_keyhint-2')
-rw-r--r--dot_config/i3/scripts/executable_keyhint-26
1 files changed, 6 insertions, 0 deletions
diff --git a/dot_config/i3/scripts/executable_keyhint-2 b/dot_config/i3/scripts/executable_keyhint-2
new file mode 100644
index 0000000..2e86d12
--- /dev/null
+++ b/dot_config/i3/scripts/executable_keyhint-2
@@ -0,0 +1,6 @@
1I3_CONFIG=$HOME/.config/i3/config
2mod_key=$(sed -nre 's/^set \$mod (.*)/\1/p' ${I3_CONFIG})
3grep "^bindsym" ${I3_CONFIG} \
4 | sed "s/-\(-\w\+\)\+//g;s/\$mod/${mod_key}/g;s/Mod1/Alt/g;s/exec //;s/bindsym //;s/^\s\+//;s/^\([^ ]\+\) \(.\+\)$/\2: \1/;s/^\s\+//" \
5 | tr -s ' ' \
6 | rofi -dmenu -theme ~/.config/rofi/rofikeyhint.rasi
Powered by cgit v1.2.3 (git 2.41.0)