From 0e56a7626ac50dd3dbff22c6fa240257acf92b60 Mon Sep 17 00:00:00 2001 From: Andrei Stoica Date: Mon, 29 Jan 2024 08:50:46 -0500 Subject: [PATCH] fixed if-shell --- .tmux.conf##default | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf##default b/.tmux.conf##default index 872b016..78757fb 100644 --- a/.tmux.conf##default +++ b/.tmux.conf##default @@ -34,7 +34,7 @@ bind h attach-session -t . -c "#{pane_current_path}" # status bar set -g status-right '%H:%m %d-%b-%y ' -if-shell 'acpi -t' { +if-shell 'test "$(acpi -t)"' { set -g status-right '♥#(acpi | cut -d ',' -f 2) | %H:%m %d-%b-%y ' }