This commit is contained in:
Roland Thomas 2023-02-12 13:12:48 -05:00
parent ac40d0c047
commit 12d3e5b039
1 changed files with 50 additions and 38 deletions

View File

@ -232,58 +232,72 @@ groups.extend(
DropDown( DropDown(
"term", "term",
terminal_opaque, terminal_opaque,
on_focus_lost_hide=False, config = {
opacity=1.0, 'on_focus_lost_hide':False,
height=0.5, 'opacity':1.0,
y=0.1, 'height':0.5,
'y':0.1,
},
), ),
DropDown( DropDown(
"ipython", "ipython",
ipython, ipython,
on_focus_lost_hide=False, config = {
opacity=1.0, 'on_focus_lost_hide':False,
height=0.9, 'opacity':1.0,
y=0.05, 'height':0.9,
'y':0.05,
},
), ),
DropDown( DropDown(
"python", "python",
python, python,
on_focus_lost_hide=False, config = {
opacity=1.0, 'on_focus_lost_hide':False,
height=0.9, 'opacity':1.0,
y=0.05, 'height':0.9,
'y':0.05,
},
), ),
DropDown( DropDown(
"qtile-config", "qtile-config",
qtile_config, qtile_config,
on_focus_lost_hide=False, config = {
opacity=1.0, 'on_focus_lost_hide':False,
height=0.9, 'opacity':1.0,
y=0.05, 'height':0.9,
'y':0.05,
},
), ),
DropDown( DropDown(
"vpn", "vpn",
vpn_vta, vpn_vta,
on_focus_lost_hide=True, config = {
opacity=1.0, 'on_focus_lost_hide':True,
height=0.5, 'opacity':1.0,
y=0.1, 'height':0.5,
'y':0.1,
},
), ),
DropDown( DropDown(
"xrdp", "xrdp",
rdp, rdp,
on_focus_lost_hide=True, config = {
opacity=1.0, 'on_focus_lost_hide':True,
height=0.5, 'opacity':1.0,
y=0.1, 'height':0.5,
'y':0.1,
},
), ),
DropDown( DropDown(
"hotkeys", "hotkeys",
hotkeys, hotkeys,
on_focus_lost_hide=True, config = {
opacity=1.0, 'on_focus_lost_hide':True,
height=0.5, 'opacity':1.0,
y=0.01, 'height':0.5,
'y':0.1,
},
), ),
]) ])
]) ])
@ -401,16 +415,12 @@ def parse_task_text(text):
return text return text
def get_wallpaper(): def get_wallpaper(screen_number):
size = run(["xdpyinfo | rg dimensions | awk '{ print $2 }'"], screens = run(["xrandr | grep '*' | awk '{ print $1 }'"],
shell=True, shell=True,
capture_output=True, capture_output=True,
encoding='utf-8') encoding='utf-8')
size = size.stdout.strip() size = screens.stdout.split()[screen_number]
width, height = size.split('x')
print(f'{size =}', type(size))
wallpaper = f'{qtile_dir}not_supported.png'
match size: match size:
case '3440x1440': case '3440x1440':
@ -423,6 +433,8 @@ def get_wallpaper():
wallpaper = f'{qtile_dir}gunter_throne.png' wallpaper = f'{qtile_dir}gunter_throne.png'
case '1760x1262': case '1760x1262':
wallpaper = f'{qtile_dir}gunter_throne_1760x1262.png' wallpaper = f'{qtile_dir}gunter_throne_1760x1262.png'
case _:
wallpaper = f'{qtile_dir}not_supported.png'
return wallpaper return wallpaper
@ -598,7 +610,7 @@ screens = [
border_color=[nord['nord10'], nord['nord10'], nord['nord10'], nord['nord10']], border_color=[nord['nord10'], nord['nord10'], nord['nord10'], nord['nord10']],
margin=4, margin=4,
), ),
wallpaper = get_wallpaper(), wallpaper = get_wallpaper(0),
wallpaper_mode='fill', wallpaper_mode='fill',
), ),
Screen( # Screen2 Screen( # Screen2
@ -761,7 +773,7 @@ screens = [
border_color=[nord['nord10'], nord['nord10'], nord['nord10'], nord['nord10']], border_color=[nord['nord10'], nord['nord10'], nord['nord10'], nord['nord10']],
margin=4, margin=4,
), ),
wallpaper = get_wallpaper(), wallpaper = get_wallpaper(1),
wallpaper_mode='fill', wallpaper_mode='fill',
), ),
Screen( # Screen3 Screen( # Screen3
@ -924,7 +936,7 @@ screens = [
border_color=[nord['nord10'], nord['nord10'], nord['nord10'], nord['nord10']], border_color=[nord['nord10'], nord['nord10'], nord['nord10'], nord['nord10']],
margin=4, margin=4,
), ),
wallpaper = get_wallpaper(), wallpaper = get_wallpaper(2),
wallpaper_mode='fill', wallpaper_mode='fill',
), ),
] ]