Update
This commit is contained in:
16
bin/sway-bindings
Executable file
16
bin/sway-bindings
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
CONFIG="$HOME/.config/sway/config"
|
||||
|
||||
if [ ! -r "$CONFIG" ]; then
|
||||
printf 'Cannot read %s\n' "$CONFIG" | wmenu -l 1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
awk '
|
||||
/^[[:space:]]*bindsym[[:space:]]+/ {
|
||||
line = $0
|
||||
sub(/^[[:space:]]*bindsym[[:space:]]+/, "", line)
|
||||
print line
|
||||
}
|
||||
' "$CONFIG" | wmenu -l 20
|
||||
Reference in New Issue
Block a user