improved qtile

This commit is contained in:
paul-loedige
2023-10-26 18:31:54 +02:00
parent 1084c5de3a
commit 313a0804c6
5 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -6,9 +6,9 @@ from Widgets import Left_widgets, volume_widget, System_widgets, end_widgets, La
widget_defaults = dict( widget_defaults = dict(
background=base_color, background=base_color,
font='Ubuntu Mono', font='UbuntuMono Nerd Font',
fontsize=18, fontsize=18,
padding=1 if chassis_type == ChassisType.LAPTOP else 3, padding=1 if chassis_type == ChassisType.LAPTOP else 5,
) )
extension_defaults = widget_defaults.copy() extension_defaults = widget_defaults.copy()
+8 -9
View File
@@ -7,15 +7,14 @@ import re
from defines import mod,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'}),
("","Browser", 'f',{'layout': 'monadtall'}), (" ","Browser", 'f',{'layout': 'monadtall'}),
("","Mail", 'm',{'layout': 'monadtall', 'matches':[Match(wm_class="Mail")]}), ("","Mail", 'm',{'layout': 'monadtall', 'matches':[Match(wm_class="Mail")]}),
("","Coding", 'c',{'layout': 'monadtall', 'matches' : [Match(wm_class="code")]}), (" ","Coding", 'c',{'layout': 'monadtall', 'matches' : [Match(wm_class="code")]}),
("","Documents", 'l',{'layout': 'monadtall'}), (" ","Documents", 'l',{'layout': 'monadtall'}),
("","Music", 'u',{'layout': 'monadtall', 'matches' : [Match(wm_class="spotify")]}), ("󰝚 ","Music", 'u',{'layout': 'monadtall', 'matches' : [Match(wm_class="spotify")]}),
("","Video", 'v',{'layout': 'monadtall', 'matches' : [Match(wm_class="vlc")]}), (" ","Video", 'v',{'layout': 'monadtall', 'matches' : [Match(wm_class="vlc")]}),
("","VideoChat", 'z',{'layout': 'monadtall', 'matches':[Match(wm_class="discord")]}), ("󰙯 ","VideoChat", 'z',{'layout': 'monadtall', 'matches':[Match(wm_class="discord")]}),
("","Planta Pulse", 'p',{'layout': 'monadtall', 'matches' : [Match(wm_class="surf")]}),
("","etc1", '1', {'layout': 'monadtall'}), ("","etc1", '1', {'layout': 'monadtall'}),
("","etc2", '2', {'layout': 'monadtall'}), ("","etc2", '2', {'layout': 'monadtall'}),
("","etc3", '3', {'layout': 'monadtall'}), ("","etc3", '3', {'layout': 'monadtall'}),
+7 -6
View File
@@ -38,7 +38,7 @@ def Left_widgets(size,fontsize,prompt=False):
), ),
*powerline_arrow('r',base_color,blue_color,size), *powerline_arrow('r',base_color,blue_color,size),
widget.TextBox( widget.TextBox(
text='', text=' ',
foreground=light_foreground_color, foreground=light_foreground_color,
fontsize=fontsize, fontsize=fontsize,
background=blue_color background=blue_color
@@ -47,6 +47,7 @@ def Left_widgets(size,fontsize,prompt=False):
widget.GroupBox( widget.GroupBox(
fontsize=fontsize, fontsize=fontsize,
rounded=False, rounded=False,
disable_drag=True,
active=light_foreground_color, active=light_foreground_color,
inactive=dark_foreground_color, inactive=dark_foreground_color,
highlight_method='block', highlight_method='block',
@@ -103,7 +104,7 @@ def System_widgets(prev_color,last_color,size,fontsize):
return [ return [
*powerline_arrow('l',prev_color,orange_color,size), *powerline_arrow('l',prev_color,orange_color,size),
widget.TextBox( widget.TextBox(
text='', text='󰈸',
foreground=light_foreground_color, foreground=light_foreground_color,
background=orange_color, background=orange_color,
fontsize=fontsize+6 fontsize=fontsize+6
@@ -117,7 +118,7 @@ def System_widgets(prev_color,last_color,size,fontsize):
), ),
*powerline_arrow('l',orange_color,green_color,size), *powerline_arrow('l',orange_color,green_color,size),
widget.TextBox( widget.TextBox(
text='', text='',
foreground=light_foreground_color, foreground=light_foreground_color,
background=green_color, background=green_color,
fontsize=fontsize+6 fontsize=fontsize+6
@@ -131,7 +132,7 @@ def System_widgets(prev_color,last_color,size,fontsize):
), ),
*powerline_arrow('l',green_color,yellow_color,size), *powerline_arrow('l',green_color,yellow_color,size),
widget.TextBox( widget.TextBox(
text='', text='󰍛 ',
foreground=light_foreground_color, foreground=light_foreground_color,
background=yellow_color, background=yellow_color,
fontsize=fontsize+6 fontsize=fontsize+6
@@ -145,7 +146,7 @@ def System_widgets(prev_color,last_color,size,fontsize):
), ),
*powerline_arrow('l',yellow_color,last_color,size), *powerline_arrow('l',yellow_color,last_color,size),
widget.TextBox( widget.TextBox(
text='', text='󰈀 ',
foreground=light_foreground_color, foreground=light_foreground_color,
background=blue_color, background=blue_color,
fontsize=fontsize+6 fontsize=fontsize+6
@@ -174,7 +175,7 @@ def end_widgets(prev_color,size,fontsize):
return [ return [
*powerline_arrow('l',prev_color,purple_color,size), *powerline_arrow('l',prev_color,purple_color,size),
widget.TextBox( widget.TextBox(
text='', text='',
foreground=light_foreground_color, foreground=light_foreground_color,
background=purple_color, background=purple_color,
fontsize=fontsize fontsize=fontsize