From bc643b03239a0b2bf97bdfb45cfd129ae01b0fb4 Mon Sep 17 00:00:00 2001 From: The-Repo-Club Date: Mon, 7 Aug 2023 23:03:01 +0100 Subject: [PATCH] Fix Qtile (Hyper_L) --- pkgbrowser/.config/pkgbrowser/pkgbrowser.conf | 2 +- qtile/.config/qtile/config.py | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgbrowser/.config/pkgbrowser/pkgbrowser.conf b/pkgbrowser/.config/pkgbrowser/pkgbrowser.conf index ab2686bda..aecf4d6b9 100644 --- a/pkgbrowser/.config/pkgbrowser/pkgbrowser.conf +++ b/pkgbrowser/.config/pkgbrowser/pkgbrowser.conf @@ -12,6 +12,6 @@ strings=bat, pkgbrowser, ly, zap, i3-gaps, microsoft edge, python3, python, pama [window] central-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\0\0\0\x1>\0\xff\xff\xff\xff\x1\0\0\0\x1\0) -geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\x3\0\0\0%\0\0\ax\0\0\x4\xe\0\0\0\x5\0\0\0'\0\0\av\0\0\x4\f\0\0\0\0\0\0\0\0\a\x80\0\0\0\x5\0\0\0'\0\0\av\0\0\x4\f) +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\x3\0\0\0)\0\0\ax\0\0\x4\n\0\0\0\x5\0\0\0+\0\0\av\0\0\x4\b\0\0\0\0\0\0\0\0\a\x80\0\0\0\x5\0\0\0+\0\0\av\0\0\x4\b) left-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xc0\0\0\x1\f\0\xff\xff\xff\xff\x1\0\0\0\x2\0) right-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xc0\0\0\0\xee\0\xff\xff\xff\xff\x1\0\0\0\x2\0) diff --git a/qtile/.config/qtile/config.py b/qtile/.config/qtile/config.py index ac0498029..aa9983548 100644 --- a/qtile/.config/qtile/config.py +++ b/qtile/.config/qtile/config.py @@ -64,16 +64,15 @@ def go_to_group(name: str) -> Callable: class Commands(object): editor = 'code' - menu = 'repomenu_run -i -l 10 -w 600 -c -p "Launcher" -q "Launch a app"' + menu = 'menu' browser = 'firefox' terminal = 'alacritty' btop = 'kitty --class=btop -e btop' - powermenu = 'kitty --class=powermenu -o initial_window_height=220 -e fzf_powermenu' + powermenu = 'rofi -show powermenu -config ~/.config/rofi/powermenu.rasi' vbox = 'virt-manager' files = 'nemo' mail = 'thunderbird' - killmenu = 'repomenue_kill' - passmenu = 'kitty --class=passmenu -o initial_window_height=650 -e fzf_pass' + passmenu = 'passmenu' autostart = ['autostart'] configure = ['autorandr --load qtile'] @@ -106,7 +105,6 @@ keys = [ Key([MOD], "Tab", lazy.next_layout(), desc="Toggle between layouts"), Key([MOD], "t", lazy.window.toggle_floating(), desc='Toggle floating'), Key([MOD], "q", lazy.window.kill(), desc="Kill focused window"), - Key([MOD, SHIFT], "q", lazy.spawn(Commands.killmenu), desc="Launch kill menu"), # Custom keybinds Key([MOD], "Return", lazy.spawn(Commands.terminal), desc="Launch terminal"), @@ -184,7 +182,7 @@ groups = Groups.groups # Define scratchpads groups.append( - ScratchPad("TAB", + ScratchPad("Hyper_L", [ DropDown("term", "kitty --name=scratch", width=0.6, height=0.6, x=0.2, y=0.1, opacity=1), DropDown("clifm", "kitty --name=clifm -e clifm", width=0.6, height=0.6, x=0.2, y=0.1, opacity=0.8), @@ -201,10 +199,10 @@ for i in groups: # Scratchpad keybindings keys.extend([ - Key([CTRL], "Return", lazy.group['TAB'].dropdown_toggle('term')), - Key([ALT], "c", lazy.group['TAB'].dropdown_toggle('clifm')), - Key([ALT], "b", lazy.group['TAB'].dropdown_toggle('btop')), - Key([ALT], "v", lazy.group['TAB'].dropdown_toggle('volume')), + Key([CTRL], "Return", lazy.group['Hyper_L'].dropdown_toggle('term')), + Key([ALT], "c", lazy.group['Hyper_L'].dropdown_toggle('clifm')), + Key([ALT], "b", lazy.group['Hyper_L'].dropdown_toggle('btop')), + Key([ALT], "v", lazy.group['Hyper_L'].dropdown_toggle('volume')), ])