diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 84cea0d..0efb362 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -33,7 +33,7 @@ WEB_QUICK_OPEN = os.path.expanduser( EMOJI_LAUNCHER = os.path.expanduser( "~/.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") keys = [ @@ -366,6 +366,7 @@ floating_layout = layout.Floating( Match(wm_class="pavucontrol"), # Audio mixer Match(wm_class="gnome-calendar"), # Calendar Match(wm_class="yad"), # Yad + Match(title="Keybinds"), # Keybinds window ] ) diff --git a/.config/qtile/list_keybinds.py b/.config/qtile/list_keybinds.py index 74264ca..972553e 100644 --- a/.config/qtile/list_keybinds.py +++ b/.config/qtile/list_keybinds.py @@ -12,10 +12,10 @@ def columnate(matrix): return "\n".join(_columnate(matrix)) -matrix = [] +matrix = [["Key", "Command"]] for key in c.keys: keys = ' + '.join((key.modifiers + [key.key])) desc = key.desc matrix.append([keys, desc]) -os.system(f"echo \"{columnate(matrix)}\" | yad --text-info --geometry=1200x700") \ No newline at end of file +os.system(f"echo \"{columnate(matrix)}\" | col -bx | less")