From 1726434b53e10e29c4a0c12b140f9e31123be3cf Mon Sep 17 00:00:00 2001 From: TheK4n Date: Sun, 9 Apr 2023 00:36:43 +0300 Subject: [PATCH] feat(i3status): if no headphones, write 'No headphones' --- home/user/.local/bin/i3status_wrapper | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home/user/.local/bin/i3status_wrapper b/home/user/.local/bin/i3status_wrapper index cbde841..8378a9f 100755 --- a/home/user/.local/bin/i3status_wrapper +++ b/home/user/.local/bin/i3status_wrapper @@ -49,6 +49,8 @@ function headphones { break fi done + local json="{ \"full_text\": \"No headphones\", \"color\": \"#FFFFFF\"}" + json_array=$(update_holder holder__headphones "$json") } i3status | (read line; echo "$line"; read line ; echo "$line" ; read line ; echo "$line" ; while true