This commit is contained in:
KK
2026-06-09 18:21:38 +02:00
parent e49497b566
commit 2e5f841bb0
7 changed files with 88 additions and 5 deletions

16
bin/sway-bindings Executable file
View 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