blob: f7d7d70f03b7d1869012307ba6381b819cf1dd6a (
plain)
1
2
3
4
5
6
7
8
9
10
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+/⬆️ /; s/$alt+/⎇ /; s/Ctrl+/Ctrl /' |
column --table --separator='|' | yad --text-info
fi
|