tmux-bar script improvements
This commit is contained in:
parent
aa837b6635
commit
1825450a5e
|
@ -26,13 +26,12 @@ while :; do
|
|||
bat="$bat%"
|
||||
fi
|
||||
|
||||
if [ "$(ifconfig iwm0 | grep status | awk '{print $2}')" = "active" ]; then
|
||||
net="$(ifconfig iwm0 | grep "inet " | awk '{print $2}')"
|
||||
else
|
||||
net=$(ifconfig | grep "inet " | tail -1 | awk '{print $2}')
|
||||
if [ "$net" = "127.0.0.1" ]; then
|
||||
net="No Network"
|
||||
fi
|
||||
|
||||
if [ "$(sndioctl output.mute | cut -d'=' -f2)" = "1" ]; then
|
||||
if [ "$(sndioctl -n output.mute)" = "1" ]; then
|
||||
snd="Muted"
|
||||
else
|
||||
snd="Unmuted"
|
||||
|
|
Loading…
Reference in New Issue