From 982d45de9d325c6226323efa2845ef5c6a3c3198 Mon Sep 17 00:00:00 2001 From: ggodot Date: Wed, 25 Dec 2024 01:38:25 +0100 Subject: [PATCH] cpu widget --- README.md | 2 +- config.py | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bd2c04c..c0292f8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # TODO -- [ ] more widgets +- [ ] more widgets - num+CAPS - [ ] popup - [ ] notifications - dunst - [ ] borders and separation of colors diff --git a/config.py b/config.py index 1ca01f7..fd51fff 100644 --- a/config.py +++ b/config.py @@ -222,11 +222,17 @@ vpn = widget.GenPollCommand( ) ram = widget.Memory( - format = " {MemFree:.0f} 󰓡 {SwapFree:.0f} ", + format = " {MemFree:.0f} 󰓡 {SwapFree:.0f}", mouse_callbacks={"Button1":lazy.spawn("alacritty --class float -e btop ")}, background=colors[6], mesure_mem="M", mesure_swap="M", +) + +cpu = widget.CPU( + format = " {load_percent}% ", + mouse_callbacks={"Button1":lazy.spawn("alacritty --class float -e btop ")}, + background=colors[6], **rounded_right, ) @@ -264,6 +270,7 @@ screens = [ wifi, vpn, ram, + cpu, battery, clock, ], 30, @@ -287,6 +294,7 @@ screens = [ wifi, vpn, ram, + cpu, battery, clock, ], 30,