diff options
author | clarkzjw <[email protected]> | 2022-11-17 10:56:25 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2022-11-17 10:56:25 -0800 |
commit | d2d735742ca61b211c9b48a2209d36395daebcf4 (patch) | |
tree | bda27729a1bbac3ab354a1f10d4885899cdbf967 /dot_config/i3/scripts/executable_keyhint-2 | |
parent | a6d2e5e6fb9adc84c32e86630b4846b1765c7d77 (diff) | |
download | dotfiles-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-2 | 6 |
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 @@ | |||
1 | I3_CONFIG=$HOME/.config/i3/config | ||
2 | mod_key=$(sed -nre 's/^set \$mod (.*)/\1/p' ${I3_CONFIG}) | ||
3 | grep "^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 | ||