dot

NixOS dotfiles
git clone https://git.echoz.io/dot.git
Log | Files | Refs

commit 21ea2f8827e627f416f4af1fdc3cc52be9fc767e
parent d8ddc9809bfb443a432f638060dd89a5dd5fa654
Author: Chris <chris@echoz.io>
Date:   Mon, 22 Jun 2026 14:54:50 +0200

feat(waybar): update icons/labels

Diffstat:
Mmodules/greetd/default.nix | 4++--
Mmodules/waybar/default.nix | 51++++++++++++++++++++++++++++++++++-----------------
2 files changed, 36 insertions(+), 19 deletions(-)

diff --git a/modules/greetd/default.nix b/modules/greetd/default.nix @@ -86,7 +86,7 @@ in battery cpu memory - disk + "custom/disk" ; modules-center = [ "clock#date" @@ -97,7 +97,7 @@ in "battery" "cpu" "memory" - "disk" + "custom/disk" ]; }; }; diff --git a/modules/waybar/default.nix b/modules/waybar/default.nix @@ -1,4 +1,4 @@ -{ style, user, ... }: +{ style, user, lib, ... }: { home-manager.users.${user} = { wayland.windowManager.hyprland.settings.layerrule = [ @@ -30,7 +30,7 @@ "battery" "cpu" "memory" - "disk" + "custom/disk" "tray" ]; "hyprland/workspaces" = { @@ -44,41 +44,50 @@ }; clock = { interval = 1; - format = " {:%I:%M:%S %p}"; + format = "󰅐 {:%I:%M:%S %p}"; }; "clock#utc" = { interval = 1; - format = " {:%I:%M:%S %p}"; + format = "󰖟 {:%I:%M:%S %p}"; timezone = "UTC"; }; cpu = { interval = 1; - format = " {usage}%"; + format = " {usage}% {max_frequency:.1f} GHz, "; }; memory = { interval = 1; - format = " {percentage}%"; + format = "{used:.1f}/{total:.1f} GiB"; }; - disk = { + "custom/disk" = { interval = 1; - format = " {percentage_used}%"; - path = "/"; + format = "󰉉 {}%"; + exec = "zpool get -Hpovalue capacity system"; }; battery = { - bat = "BAT0"; + bat = lib.mkDefault "BAT0"; interval = 1; states = { warning = 20; critical = 10; }; format = "{icon} {capacity}%"; - format-icons = [ - "" - "" - "" - "" - "" - ]; + format-icons = { + default = [ + " " + " " + " " + " " + " " + ]; + charging = [ + " " + " " + " " + " " + " " + ]; + }; tooltip-format = "{timeTo}"; }; tray = { @@ -152,6 +161,14 @@ #workspaces button.empty label { color: #${style.colors.lo.hex}; } + + #cpu { + padding-right: 0; + } + + #memory { + padding-left: 0; + } ''; }; };