Rewriting Qtile config to correct some bugs.

This commit is contained in:
Derek Taylor
2023-08-10 13:04:08 -05:00
parent d48f0dbe82
commit 3208563f56

View File

@@ -33,8 +33,8 @@ 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
#from qtile_extras.widget import StatusNotifier
# Allows you to input a name when adding treetab section. # Allows you to input a name when adding treetab section.
@lazy.layout.function @lazy.layout.function
@@ -409,7 +409,7 @@ def init_widgets_list():
update_interval = 300, update_interval = 300,
func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True), func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True),
foreground = colors[3], foreground = colors[3],
fmt = 'Kernel: {}', fmt = 'Kernel: {}',
decorations=[ decorations=[
BorderDecoration( BorderDecoration(
colour = colors[3], colour = colors[3],
@@ -419,11 +419,8 @@ def init_widgets_list():
) )
], ],
), ),
widget.CPU(
widget.Net( format = '🏼 Cpu: {load_percent}%',
interface = "enp5s0",
prefix='M',
format = 'Net: {down} ↓↑ {up}',
foreground = colors[4], foreground = colors[4],
decorations=[ decorations=[
BorderDecoration( BorderDecoration(
@@ -438,7 +435,7 @@ def init_widgets_list():
foreground = colors[8], foreground = colors[8],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')}, mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
format = '{MemUsed: .0f}{mm}', format = '{MemUsed: .0f}{mm}',
fmt = ' Mem: {} used', fmt = '🖥 Mem: {} used',
decorations=[ decorations=[
BorderDecoration( BorderDecoration(
colour = colors[8], colour = colors[8],