From a420a6fd3bb86b358e5c29894bf775876d0d5618 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Sun, 31 Mar 2024 23:07:54 +0200 Subject: [PATCH] [waybar] added cpu, memory and disk indicator --- apps/waybar/style.css | 13 +++++++++---- apps/waybar/waybar.conf | 22 +++++++++++++++++++++- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/apps/waybar/style.css b/apps/waybar/style.css index 6927e04..59c1c05 100644 --- a/apps/waybar/style.css +++ b/apps/waybar/style.css @@ -36,7 +36,10 @@ tooltip { #battery, #backlight, #clock, +#cpu, +#disk, #network, +#memory, #pulseaudio, #workspaces, #custom-hypridle, @@ -86,24 +89,26 @@ tooltip { #backlight, #battery, #custom-wireguard, +#cpu, +#memory, #network, #pulseaudio { border-radius: 0px 0px 0px 0px; - font-size: 20px; + font-size: 18px; margin-right: -3px; margin-left: 0px; } -#custom-wireguard { +#disk { border-radius: 10px 0px 0px 10px; - font-size: 20px; + font-size: 18px; margin-left: 10px; margin-right: 0px; } #custom-hypridle { border-radius: 0px 10px 10px 0px; - font-size: 20px; + font-size: 18px; margin-left: 0px; margin-right: 10px; } diff --git a/apps/waybar/waybar.conf b/apps/waybar/waybar.conf index 018fbf1..09b4670 100644 --- a/apps/waybar/waybar.conf +++ b/apps/waybar/waybar.conf @@ -21,6 +21,9 @@ "modules-right": [ "tray", + "disk", + "cpu", + "memory", "custom/wireguard", "network", "pulseaudio", @@ -59,7 +62,12 @@ "timezones": ["Europe/Amsterdam", "Asia/Kolkata"], "actions": { "on-click": "tz_down" }, "tooltip-format": "{calendar}" - }, + }, + + "cpu": { + "interval": 2, + "format": " {usage:2}%" + }, "custom/hypridle": { "interval": 1, @@ -75,6 +83,12 @@ "on-click": "$HOME/.dotfiles/apps/wireguard/wireguard.sh switch" }, + "disk": { + "interval": 10, + "path": "/", + "format": "󱂵 {percentage_used}%", + }, + "hyprland/window": { "format": "{}" }, @@ -97,6 +111,12 @@ } }, + "memory": { + "interval": 2, + "format": " {}%", + "tooltip-format": "{used:0.1f}GB / {total:0.1f}GB", + }, + "network": { "tooltip": true, "format-wifi": "󰣶 ",