From 46aa5054f1e3209dd27e28e8d9ff5e9961bc5a28 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 19 Nov 2024 06:38:10 +0300 Subject: [PATCH] Waybar: Fix some quirks again. --- home/file/waybar/config/default.nix | 14 +++++++------- home/file/waybar/style/Plugin.nix | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/home/file/waybar/config/default.nix b/home/file/waybar/config/default.nix index 1bc9aaf9..8a7c6d9e 100644 --- a/home/file/waybar/config/default.nix +++ b/home/file/waybar/config/default.nix @@ -58,7 +58,7 @@ in { spacing = 8; }; clock = { - format-alt = "{:%d %a %H:%M}"; + format-alt = "{:%H:%M %a %d %b}"; on-click-right = "xdg-open https://cloud.voronind.com/apps/calendar/"; tooltip-format = "{calendar}"; }; @@ -92,10 +92,10 @@ in { "group/batteryinfo" = { orientation = "horizontal"; modules = [ - "custom/tagbat1" + "custom/tagbt1" "battery" "custom/powerlimit" - "custom/tagbat2" + "custom/tagbt2" ]; }; pulseaudio = { @@ -192,11 +192,11 @@ in { "custom/taghw2" = { exec = "echo ​"; }; - "custom/tagbat1" = { - exec = "[[ -e /sys/class/power_supply/BAT*/capacity ]] && echo ​"; + "custom/tagbt1" = { + exec = "test -e /sys/class/power_supply/BAT*/capacity && echo ​"; }; - "custom/tagbat2" = { - exec = "[[ -e /sys/class/power_supply/BAT*/capacity ]] && echo ​"; + "custom/tagbt2" = { + exec = "test -e /sys/class/power_supply/BAT*/capacity && echo ​"; }; }; } diff --git a/home/file/waybar/style/Plugin.nix b/home/file/waybar/style/Plugin.nix index 1f061922..73c3e4a4 100644 --- a/home/file/waybar/style/Plugin.nix +++ b/home/file/waybar/style/Plugin.nix @@ -11,12 +11,12 @@ in { text = '' /* See the ISSUE above. */ #custom-taghw1, - #custom-tagbat1 { + #custom-tagbt1 { padding-left: ${paddingH}; } #custom-taghw2, - #custom-tagbat2 { + #custom-tagbt2 { padding-right: ${paddingH}; }