From 0b552aa92460acd5dd5357b5101f7d97a4840198 Mon Sep 17 00:00:00 2001 From: Devin Finlinson Date: Fri, 12 Jan 2024 12:53:58 -0700 Subject: add cpu monitor to waybar --- modules/home-manager/waybar.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/home-manager/waybar.nix') diff --git a/modules/home-manager/waybar.nix b/modules/home-manager/waybar.nix index c94deef..83161ce 100644 --- a/modules/home-manager/waybar.nix +++ b/modules/home-manager/waybar.nix @@ -10,7 +10,7 @@ height = 40; modules-left = [ "hyprland/workspaces" ]; modules-center = [ "clock" ]; - modules-right = [ "pulseaudio" "bluetooth" "network" "backlight/slider" "battery" "temperature" "memory" "keyboard_state" "tray" ]; + modules-right = [ "pulseaudio" "bluetooth" "network" "backlight/slider" "battery" "cpu" "temperature" "memory" "keyboard_state" "tray" ]; "tray" = { icon-size = 21; @@ -101,6 +101,10 @@ format-icons = [ "" "" "" "" "" ]; max-length = 25; }; + cpu = { + format = "{usage}% "; + tooltip = false; + }; "memory" = { format = "{used:0.1f}G/{total:0.1f}G "; }; -- cgit v1.2.3