feat(i3status): if no headphones, write 'No headphones'

This commit is contained in:
TheK4n 2023-04-09 00:36:43 +03:00
parent d3c842947f
commit 1726434b53

View File

@ -49,6 +49,8 @@ function headphones {
break break
fi fi
done 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 i3status | (read line; echo "$line"; read line ; echo "$line" ; read line ; echo "$line" ; while true