diff --git a/qtile/.config/qtile/Groups.py b/qtile/.config/qtile/Groups.py index 5792536..7e89474 100644 --- a/qtile/.config/qtile/Groups.py +++ b/qtile/.config/qtile/Groups.py @@ -2,7 +2,7 @@ from typing import Match from libqtile.config import Group, ScratchPad, DropDown, Key, Match from libqtile.command import lazy -from defines import term +from defines import mod,term from Keys import keys group_names = [("","Home", 'h',{'layout': 'monadtall'}), @@ -23,6 +23,16 @@ groups = [Group(icon, **kwargs) for icon, name, key, kwargs in group_names] groups.append( ScratchPad("scratchpad",[ + DropDown( + 'ARandR', + 'arandr', + height = 0.5, + width = 0.8, + x = .1, + on_focus_lost_hide=True, + opacity=1, + match = Match(wm_class='arandr') + ), DropDown( "term", term, @@ -106,6 +116,8 @@ for (icon,name,key, kwargs) in group_names: ]) keys.extend([ + Key([mod],'p',lazy.group['scratchpad'].dropdown_toggle('ARandR'), + desc="open the dropdown for ARandR"), Key(['mod1','control'],'space',lazy.group['scratchpad'].dropdown_toggle('term'), desc="open the dropdown terminal"), Key(['control','shift'],'Escape',lazy.group['scratchpad'].dropdown_toggle('htop'), diff --git a/qtile/.config/qtile/Keys.py b/qtile/.config/qtile/Keys.py index f83dcea..18d04ac 100644 --- a/qtile/.config/qtile/Keys.py +++ b/qtile/.config/qtile/Keys.py @@ -51,7 +51,6 @@ keys = [ #rofi Key([mod],'Return',lazy.spawn("rofi -show drun -show-icons -modi drun,calc,ssh"),desc="launch rofi (drun)"), - Key([mod],'p',lazy.spawn("bwmenu --auto-lock -1"),desc="launch bwmenu"), # audio hotkeys Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 5'), desc="increase speaker volume"),