Minor edits

This commit is contained in:
Derek Taylor
2023-08-08 18:04:44 -05:00
parent eb90b98ebf
commit 27f370a737

View File

@@ -33,6 +33,7 @@ from libqtile.lazy import lazy
# Make sure 'qtile-extras' is installed or this config will not work. # Make sure 'qtile-extras' is installed or this config will not work.
from qtile_extras import widget from qtile_extras import widget
from qtile_extras.widget import StatusNotifier
from qtile_extras.widget.decorations import BorderDecoration from qtile_extras.widget.decorations import BorderDecoration
# Allows you to input a name when adding treetab section. # Allows you to input a name when adding treetab section.
@@ -446,17 +447,18 @@ def init_widgets_list():
length = 8, length = 8,
foreground = colors[2] foreground = colors[2]
), ),
] ]
return widgets_list return widgets_list
# I use 3 monitors which means that I need 3 bars, but some widgets (such as the systray) # I use 3 monitors which means that I need 3 bars, but some widgets (such as the systray)
# can only have one instance, otherwise it will crash. So I define the follow two lists. # can only have one instance, otherwise it will crash. So I define the follow two lists.
# The first one creates a bar with every widget EXCEPT the 18th widget (the systray). # The first one creates a bar with every widget EXCEPT index 15 and 16 (systray and spacer).
# The second one creates a bar with all widgets. # The second one creates a bar with all widgets.
def init_widgets_screen1(): def init_widgets_screen1():
widgets_screen1 = init_widgets_list() widgets_screen1 = init_widgets_list()
del widgets_screen1[15] # Removes unwanted widgets (systray) on Monitors 1,3 del widgets_screen1[15:16] # Removes widgets 15 and 16 for bars on Monitors 1 + 3
return widgets_screen1 return widgets_screen1
def init_widgets_screen2(): def init_widgets_screen2():