From ab674a12e7e861a95a4584f5ce4c62172def944d Mon Sep 17 00:00:00 2001 From: Liam Malone Date: Thu, 16 Jan 2025 00:06:12 +0100 Subject: [PATCH] update waybar config: separate separator --- hosts/darp8/configuration.nix | 8 +++++--- modules/desktop/waybar.css | 4 ++++ modules/desktop/waybar.nix | 11 ++++++++--- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/hosts/darp8/configuration.nix b/hosts/darp8/configuration.nix index c703412..3612ec4 100644 --- a/hosts/darp8/configuration.nix +++ b/hosts/darp8/configuration.nix @@ -6,9 +6,11 @@ inputs.home-manager.nixosModules.default ]; - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - boot.plymouth.enable = true; + boot = { + loader.systemd-boot.enable = true; + loader.efi.canTouchEfiVariables = true; + plymouth.enable = true; + }; networking = { networkmanager = { diff --git a/modules/desktop/waybar.css b/modules/desktop/waybar.css index b46ac03..a40021d 100644 --- a/modules/desktop/waybar.css +++ b/modules/desktop/waybar.css @@ -260,6 +260,10 @@ tooltip label { background-color: @red; } +#custom.separator { + color: @text; +} + #battery { color: @text; } diff --git a/modules/desktop/waybar.nix b/modules/desktop/waybar.nix index 25e7c3a..6ce7ca0 100644 --- a/modules/desktop/waybar.nix +++ b/modules/desktop/waybar.nix @@ -37,6 +37,7 @@ modules-right = [ "tray" + "custom/separator" "battery" "pulseaudio#audio" "clock" @@ -95,6 +96,10 @@ spacing = 8; }; + "custom/separator" = { + format = " | "; + }; + "battery" = { interval = 1; states = { @@ -102,9 +107,9 @@ warning = 30; critical = 15; }; - format = "| {icon} {capacity}%"; - format-charging = "| 󰂄 {capacity}%"; - format-plugged = "| 󱘖 {capacity}%"; + format = "{icon} {capacity}%"; + format-charging = "󰂄 {capacity}%"; + format-plugged = "󱘖 {capacity}%"; format-icons = [ "󰁺" "󰁻"