Skip to content

Instantly share code, notes, and snippets.

@mark-lumbao
Created March 17, 2022 14:20
Show Gist options
  • Save mark-lumbao/01373902636fab7afd5790fbc214b16f to your computer and use it in GitHub Desktop.
Save mark-lumbao/01373902636fab7afd5790fbc214b16f to your computer and use it in GitHub Desktop.
List all i3wm keybindings
#!/bin/env bash
# List all i3wm keybindings
# Dependecy: glow
i3config=~/.config/i3/config
awk \
'BEGIN {\
printf "\
# i3wm Keybinds Directory \n\n\
| Keychord | Command |\n|----------|---------|\n"}\
/bindsym/\
{printf "| `"$2"` | "; for(i=3;i<=NF;i++) printf $i" "; print "|"}\
' $i3config | glow - -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment