Created
March 17, 2022 14:20
-
-
Save mark-lumbao/01373902636fab7afd5790fbc214b16f to your computer and use it in GitHub Desktop.
List all i3wm keybindings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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