From 05e19df20c6c39146d2eb6f5d48ea946db392361 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Tue, 19 Sep 2023 22:15:50 +0200 Subject: [PATCH] pinwheel: Style `waybar` modules (`wireplumber`, `battery`, `clock`) --- hosts/pinwheel/modules/waybar/default.nix | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/hosts/pinwheel/modules/waybar/default.nix b/hosts/pinwheel/modules/waybar/default.nix index 2af24c0..3eeb01f 100644 --- a/hosts/pinwheel/modules/waybar/default.nix +++ b/hosts/pinwheel/modules/waybar/default.nix @@ -84,9 +84,10 @@ in }; wireplumber = { - format = "{volume}%"; - format-muted = ""; - on-click = "pavucontrol"; + format = " {volume}%"; + format-muted = " {volume}%"; + on-click = "${pkgs.pavucontrol}/bin/pavucontrol"; + on-click-right = "${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; max-volume = 150; scroll-step = 0.2; }; @@ -97,6 +98,20 @@ in format-disconnected = "󱚵"; tooltip-format-wifi = "{essid} ({signalStrength}%)"; }; + + battery = { + "interval" = 60; + "format" = "{icon} {capacity}%"; + "format-time" = "{H}h {M}min"; + "format-charging" ="󰂄 {capacity}%"; + "format-icons" = ["󰁺" "󰁻" "󰁽" "󰁿" "󰂁" "󰁹" ]; + }; + + "clock" = { + "interval" = 1; + "format" = "{:%H:%M:%S}"; + "format-alt" = "{:%a, %B %d %H:%M:%S}"; + }; }; }; @@ -128,7 +143,7 @@ in #workspaces button.active { color: ${foreground}; background-color: ${background}; - } + } window#waybar { color: ${foreground};