added Win + P shortcut for ARandR
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user