From 915c54d6a0c7c79149d77a2b68da0792886887bd Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 4 Oct 2024 21:33:03 +0100 Subject: qtile : add volume && shutdown widgets, use glyphs for a more aesthetic look --- skel/.config/qtile/config.py | 44 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/skel/.config/qtile/config.py b/skel/.config/qtile/config.py index e4084b2..3401f9a 100644 --- a/skel/.config/qtile/config.py +++ b/skel/.config/qtile/config.py @@ -259,9 +259,26 @@ def init_widgets_list(monitor_num): padding=10 ), widget.TextBox( - text="CPU ", - fontsize=10, + text=" ", + fontsize=14, + font="FontAwesome", + foreground=colors[0] + ), + widget.PulseVolume( font="Noto Sans", + limit_max_volume=True, + mute_format='Mute', + volume_app='pavucontrol-qt', + foreground=foregroundColor + ), + widget.Sep( + linewidth=0, + padding=10 + ), + widget.TextBox( + text=" ", + fontsize=14, + font="FontAwesome", foreground=colors[0] ), widget.CPU( @@ -276,9 +293,9 @@ def init_widgets_list(monitor_num): padding=10 ), widget.TextBox( - text="RAM", - fontsize=10, - font="Noto Sans", + text=" ", + fontsize=14, + font="FontAwesome", foreground=colors[0] ), widget.Memory( @@ -292,12 +309,29 @@ def init_widgets_list(monitor_num): linewidth=0, padding=10 ), + widget.TextBox( + text=" ", + fontsize=14, + font="FontAwesome", + foreground=colors[0] + ), widget.Clock( format='%I:%M %p', font="Noto Sans", padding=10, foreground=colors[0] ), + widget.Sep( + linewidth=0, + padding=10, + ), + widget.QuickExit( + countdown_start=15, + countdown_format='{}', + default_text=" ", + font="FontAwesome", + foreground=colors[0] + ), ] return widgets_list -- cgit v1.2.3