From 5c916d69d457101326803eb076a746060e3618cf Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Thu, 21 Nov 2024 13:30:52 +0530 Subject: Moved from github --- .local/bin/desktop/show-i3-keybindings | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .local/bin/desktop/show-i3-keybindings (limited to '.local/bin/desktop/show-i3-keybindings') diff --git a/.local/bin/desktop/show-i3-keybindings b/.local/bin/desktop/show-i3-keybindings new file mode 100755 index 0000000..45d0626 --- /dev/null +++ b/.local/bin/desktop/show-i3-keybindings @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ -n "$TERM" ]; then + grep '^bindsym' ~/.config/i3/config | sort | + sed 's/^bindsym \(\S*\)\s\+\(.*\)$/\1|\2/; s/\$super+/  /; s/Shift+/וּ /; s/$alt+/Alt /; s/Ctrl+/Ctrl /' | + column --table --separator='|' | less -r +else + grep '^bindsym' ~/.config/i3/config | sort | + sed 's/^bindsym \(\S*\)\s\+\(.*\)$/\1|\2/; s/\$super+/  /; s/Shift+/Shift /; s/$alt+/Alt /; s/Ctrl+/Ctrl /' | + column --table --separator='|' | yad --text-info +fi -- cgit v1.2.3