infobar

Unixy status monitor
git clone git://wolog.xyz/infobar
Log | Files | Refs | README | LICENSE

commit 1cc98a5245176a1854eabe16be2080345a47ca3d
parent 273250f23e8ad2bbb16ea03d53e96589a1870852
Author: Raymond Cole <rc@wolog.xyz>
Date:   Tue,  5 Nov 2024 03:41:56 +0000

Rename a variable

Diffstat:
Minfobar | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/infobar b/infobar @@ -266,10 +266,10 @@ fifolog - "$tmpdir"/fifo/* | while read -r src tok toks; do [ "$tok" -gt 1 ] || break tok=$(( tok - 1 )) done - butt="${toks%% *}" + button="${toks%% *}" case "$x" in [Cc]) - if [ "$butt" -eq 1 ]; then + if [ "$button" -eq 1 ]; then if [ "$x" = c ]; then changebar %c %C else @@ -279,7 +279,7 @@ fifolog - "$tmpdir"/fifo/* | while read -r src tok toks; do fi ;; [MPp]) - if [ "$butt" -eq 1 ]; then + if [ "$button" -eq 1 ]; then case "$bar" in *'%P %M'*) changebar '%P %M' %p @@ -298,7 +298,7 @@ fifolog - "$tmpdir"/fifo/* | while read -r src tok toks; do fi ;; N) - if [ "$butt" -eq 1 ]; then + if [ "$button" -eq 1 ]; then changebar %N %n netrx= nettx= @@ -306,19 +306,19 @@ fifolog - "$tmpdir"/fifo/* | while read -r src tok toks; do fi ;; n) - if [ "$butt" -eq 1 ]; then + if [ "$button" -eq 1 ]; then changebar %n %N updatenet && putbar fi ;; v) - if [ "$butt" -eq 3 ]; then + if [ "$button" -eq 3 ]; then amixer -q set Master toggle updatevol && putbar - elif [ "$butt" -eq 4 ]; then + elif [ "$button" -eq 4 ]; then amixer -q set Master 5%+ updatevol && putbar - elif [ "$butt" -eq 5 ]; then + elif [ "$button" -eq 5 ]; then amixer -q set Master 5%- updatevol && putbar fi