From e775534e96ca0fd634772a75f7de7cc232f24f09 Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Tue, 9 Jul 2024 10:10:09 +0200 Subject: [PATCH] Update waybar --- modules/home/waybar/settings.nix | 34 +++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/modules/home/waybar/settings.nix b/modules/home/waybar/settings.nix index 4ea80ec..fbfc3c3 100644 --- a/modules/home/waybar/settings.nix +++ b/modules/home/waybar/settings.nix @@ -9,6 +9,7 @@ opacity = ".85"; cursor = "Numix-Cursor"; }, + host, ... }: { programs.waybar.settings.mainBar = { @@ -28,17 +29,26 @@ modules-center = [ "hyprland/workspaces" ]; - modules-right = [ - "tray" - "cpu" - "memory" - "disk" - "pulseaudio" - "battery" - "network" - "custom/notification" - "clock" - ]; + modules-right = + [ + "tray" + ] + ++ ( + if (host == "frues-pc") # Only one with a big-enough screen + then [ + "cpu" + "memory" + "disk" + ] + else [] + ) + ++ [ + "pulseaudio" + "battery" + "network" + "custom/notification" + "clock" + ]; clock = { format = " {:%H:%M}"; tooltip = true; @@ -115,7 +125,7 @@ }; pulseaudio = { format = "{icon} {volume}%"; - format-muted = "󰖁 "; + format-muted = " "; format-icons = { default = [" "]; };