mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-01-10 04:19:38 +00:00
qtile: change from yad to less to view keybinds
This commit is contained in:
parent
bc9b8f4c71
commit
39a37c5189
@ -33,7 +33,7 @@ WEB_QUICK_OPEN = os.path.expanduser(
|
|||||||
EMOJI_LAUNCHER = os.path.expanduser(
|
EMOJI_LAUNCHER = os.path.expanduser(
|
||||||
"~/.scripts/bin/clip-moji"
|
"~/.scripts/bin/clip-moji"
|
||||||
)
|
)
|
||||||
SHOW_KEYBINDS = "python3 /home/grfreire/.config/qtile/list_keybinds.py"
|
SHOW_KEYBINDS = f"{TERMINAL} -t Keybinds -e python3 /home/grfreire/.config/qtile/list_keybinds.py"
|
||||||
|
|
||||||
MEDIA_CONTROL = os.path.expanduser("~/.config/qtile/media_control.sh")
|
MEDIA_CONTROL = os.path.expanduser("~/.config/qtile/media_control.sh")
|
||||||
keys = [
|
keys = [
|
||||||
@ -366,6 +366,7 @@ floating_layout = layout.Floating(
|
|||||||
Match(wm_class="pavucontrol"), # Audio mixer
|
Match(wm_class="pavucontrol"), # Audio mixer
|
||||||
Match(wm_class="gnome-calendar"), # Calendar
|
Match(wm_class="gnome-calendar"), # Calendar
|
||||||
Match(wm_class="yad"), # Yad
|
Match(wm_class="yad"), # Yad
|
||||||
|
Match(title="Keybinds"), # Keybinds window
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -12,10 +12,10 @@ def columnate(matrix):
|
|||||||
|
|
||||||
return "\n".join(_columnate(matrix))
|
return "\n".join(_columnate(matrix))
|
||||||
|
|
||||||
matrix = []
|
matrix = [["Key", "Command"]]
|
||||||
for key in c.keys:
|
for key in c.keys:
|
||||||
keys = ' + '.join((key.modifiers + [key.key]))
|
keys = ' + '.join((key.modifiers + [key.key]))
|
||||||
desc = key.desc
|
desc = key.desc
|
||||||
matrix.append([keys, desc])
|
matrix.append([keys, desc])
|
||||||
|
|
||||||
os.system(f"echo \"{columnate(matrix)}\" | yad --text-info --geometry=1200x700")
|
os.system(f"echo \"{columnate(matrix)}\" | col -bx | less")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user