nix-config/modules/wm/qtile/config/keys/print_keybindings.py
2025-02-25 15:56:58 +01:00

15 lines
361 B
Python

"""
Script that automates the process of writing a keybindings.md
By directly getting the keybindings from keybindings.py
"""
# Local import
from keybindings import Keybindings
def get_keybindings():
current_keybindings = Keybindings()
list_of_keys = list(current_keybindings.init_keys())
return list_of_keys
print(*get_keybindings(), sep="\n")