Fix Qtile (Hyper_L)

This commit is contained in:
The-Repo-Club 2023-08-07 23:03:01 +01:00
parent 6fcdb111f2
commit bc643b0323
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F
2 changed files with 9 additions and 11 deletions

View File

@ -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)

View File

@ -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')),
])