From bf82e798b7818bbb24e4708911c0dbbf3ea17524 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 19 Nov 2024 02:21:12 +0300 Subject: [PATCH] Waybar: Fix empty battery padding. --- home/file/tmux/module/Status.nix | 4 ++-- home/file/waybar/config/default.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/home/file/tmux/module/Status.nix b/home/file/tmux/module/Status.nix index 37e16f6..e0cc295 100644 --- a/home/file/tmux/module/Status.nix +++ b/home/file/tmux/module/Status.nix @@ -12,10 +12,10 @@ in { set -g status-justify left set -g status-style "fg=#${fg}" - set -g status-left "#[bold] #H-#S #[default]" + set -g status-left "#[bold] #H-#S #[default]" set -g status-right "" - set-window-option -g window-status-separator "" + set-window-option -g window-status-separator "" setw -g window-status-current-style "fg=#${accent} bold" setw -g window-status-current-format " #W " diff --git a/home/file/waybar/config/default.nix b/home/file/waybar/config/default.nix index 8134801..1bc9aaf 100644 --- a/home/file/waybar/config/default.nix +++ b/home/file/waybar/config/default.nix @@ -193,10 +193,10 @@ in { exec = "echo ​"; }; "custom/tagbat1" = { - exec = "echo ​"; + exec = "[[ -e /sys/class/power_supply/BAT*/capacity ]] && echo ​"; }; "custom/tagbat2" = { - exec = "echo ​"; + exec = "[[ -e /sys/class/power_supply/BAT*/capacity ]] && echo ​"; }; }; }