Fix qtile DropDown from dictionary to parameters

This commit is contained in:
Roland Thomas 2023-04-03 12:17:15 -04:00
parent 52388566b0
commit 61e3e58638
2 changed files with 34 additions and 37 deletions

View File

@ -2,7 +2,6 @@
# ~/.bashrc # ~/.bashrc
# #
export PYTHONPATH=~/Documents/Course-Material/module-o/book/src
export MANPAGER="sh -c 'col -bx | bat -l man -p'" export MANPAGER="sh -c 'col -bx | bat -l man -p'"
# If not running interactively, don't do anything # If not running interactively, don't do anything

View File

@ -22,6 +22,7 @@ ipython = f'alacritty {opaque_config} -e ipython'
python = f'alacritty {opaque_config} -e python' python = f'alacritty {opaque_config} -e python'
vpn_vta = 'alacritty -e /home/roland/.local/bin/vpn' vpn_vta = 'alacritty -e /home/roland/.local/bin/vpn'
bjendal = 'alacritty -e /home/roland/.local/bin/bjendal' bjendal = 'alacritty -e /home/roland/.local/bin/bjendal'
lumar = 'alacritty -e /home/roland/.local/bin/lumar'
rofi = 'rofi -combi-modi window,drun,ssh -theme nord -font "hack 12" -show drun -icon-theme "Papirus" -show-icons' rofi = 'rofi -combi-modi window,drun,ssh -theme nord -font "hack 12" -show drun -icon-theme "Papirus" -show-icons'
qtile_dir = '/home/roland/.config/qtile/' qtile_dir = '/home/roland/.config/qtile/'
wallpaper_dir = '/home/roland/.config/qtile/wallpaper/' wallpaper_dir = '/home/roland/.config/qtile/wallpaper/'
@ -163,6 +164,7 @@ keys = [
Key([], "q", lazy.group['scratchpad'].dropdown_toggle('qtile-config'), desc="Launch qtile config"), Key([], "q", lazy.group['scratchpad'].dropdown_toggle('qtile-config'), desc="Launch qtile config"),
Key([], "v", lazy.group['scratchpad'].dropdown_toggle('vpn'), desc="Launch vpn"), Key([], "v", lazy.group['scratchpad'].dropdown_toggle('vpn'), desc="Launch vpn"),
Key([], "b", lazy.group['scratchpad'].dropdown_toggle('bjendal'), desc="Launch xrdp: bjendal"), Key([], "b", lazy.group['scratchpad'].dropdown_toggle('bjendal'), desc="Launch xrdp: bjendal"),
Key([], "l", lazy.group['scratchpad'].dropdown_toggle('lumar'), desc="Launch xrdp: lumar"),
Key([], "s", lazy.spawn('passmenu'), desc="Launch pass"), Key([], "s", lazy.spawn('passmenu'), desc="Launch pass"),
Key([], "r", lazy.run_extension(extension.DmenuRun(dmenu_prompt = "\uf101")), desc="Launch dmenu"), Key([], "r", lazy.run_extension(extension.DmenuRun(dmenu_prompt = "\uf101")), desc="Launch dmenu"),
], ],
@ -246,62 +248,58 @@ groups.extend(
DropDown( DropDown(
'term', 'term',
terminal_opaque, terminal_opaque,
config = { on_focus_lost_hide=False,
'on_focus_lost_hide':False, opacity=.9,
'opacity':1.0, height=0.8,
'height':0.5, y=0.1,
'y':0.1,
},
), ),
DropDown( DropDown(
'ipython', 'ipython',
ipython, ipython,
config = { on_focus_lost_hide=False,
'on_focus_lost_hide':False, opacity=.9,
'opacity':1.0, height=0.8,
'height':0.9, y=0.1,
'y':0.05,
},
), ),
DropDown( DropDown(
'python', 'python',
python, python,
config = { on_focus_lost_hide=False,
'on_focus_lost_hide':False, opacity=.9,
'opacity':1.0, height=0.8,
'height':0.9, y=0.1,
'y':0.05,
},
), ),
DropDown( DropDown(
'qtile-config', 'qtile-config',
qtile_config, qtile_config,
config = { on_focus_lost_hide=False,
'on_focus_lost_hide':False, opacity=1.0,
'opacity':1.0, height=0.9,
'height':0.9, y=0.05,
'y':0.05,
},
), ),
DropDown( DropDown(
'vpn', 'vpn',
vpn_vta, vpn_vta,
config = { on_focus_lost_hide=True,
'on_focus_lost_hide':True, opacity=1.0,
'opacity':1.0, height=0.5,
'height':0.5, y=0.1,
'y':0.1,
},
), ),
DropDown( DropDown(
'bjendal', 'bjendal',
bjendal, bjendal,
config = { on_focus_lost_hide=True,
'on_focus_lost_hide':True, opacity=1.0,
'opacity':1.0, height=0.5,
'height':0.5, y=0.1,
'y':0.1, ),
}, DropDown(
'lumar',
lumar,
on_focus_lost_hide=True,
opacity=1.0,
height=0.5,
y=0.1,
), ),
]) ])
]) ])