added Win + P shortcut for ARandR

This commit is contained in:
paul-loedige
2022-05-04 10:21:38 +02:00
parent ef5d3ac970
commit f6e21d27ee
2 changed files with 13 additions and 2 deletions
+13 -1
View File
@@ -2,7 +2,7 @@ from typing import Match
from libqtile.config import Group, ScratchPad, DropDown, Key, Match from libqtile.config import Group, ScratchPad, DropDown, Key, Match
from libqtile.command import lazy from libqtile.command import lazy
from defines import term from defines import mod,term
from Keys import keys from Keys import keys
group_names = [("","Home", 'h',{'layout': 'monadtall'}), group_names = [("","Home", 'h',{'layout': 'monadtall'}),
@@ -23,6 +23,16 @@ groups = [Group(icon, **kwargs) for icon, name, key, kwargs in group_names]
groups.append( groups.append(
ScratchPad("scratchpad",[ 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( DropDown(
"term", "term",
term, term,
@@ -106,6 +116,8 @@ for (icon,name,key, kwargs) in group_names:
]) ])
keys.extend([ 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'), Key(['mod1','control'],'space',lazy.group['scratchpad'].dropdown_toggle('term'),
desc="open the dropdown terminal"), desc="open the dropdown terminal"),
Key(['control','shift'],'Escape',lazy.group['scratchpad'].dropdown_toggle('htop'), Key(['control','shift'],'Escape',lazy.group['scratchpad'].dropdown_toggle('htop'),
-1
View File
@@ -51,7 +51,6 @@ keys = [
#rofi #rofi
Key([mod],'Return',lazy.spawn("rofi -show drun -show-icons -modi drun,calc,ssh"),desc="launch rofi (drun)"), 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 # audio hotkeys
Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 5'), desc="increase speaker volume"), Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 5'), desc="increase speaker volume"),