statusbar scripts tweaking.
This commit is contained in:
parent
fea1261796
commit
59eadee198
@ -13,4 +13,4 @@ for i in $(cat ~/.local/share/passwords); do
|
|||||||
[ $count -ne 0 ] && export unread=$((unread + count))
|
[ $count -ne 0 ] && export unread=$((unread + count))
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
[ "$unread" -eq 0 ] && printf "\ue0e1 no new mail" || printf "^c#eeeeee^^b#005577^\ue0e1 new mail: ${unread}^d^"
|
[ "$unread" -eq 0 ] && printf "" || printf "^c#eeeeee^^b#005577^\ue0e1 new mail: ${unread}^d^"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||||
down) printf "^c#eeeeee^^b#005577^\ue63e no wifi^d^" ;;
|
down) printf "^c#161616^^b#fd4285^\ue63e no wifi^d^" ;;
|
||||||
up)
|
up)
|
||||||
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \
|
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \
|
||||||
&& printf "\ue63e $(iw dev wlan0 info | awk '/ssid/ {print $2}')" \
|
&& printf "\ue63e $(iw dev wlan0 info | awk '/ssid/ {print $2}')" \
|
||||||
|| printf "^c#eeeeee^^b#005577^\ue63e no ip^d^" ;;
|
|| printf "^c#161616^^b#fd4285^\ue63e no ip^d^" ;;
|
||||||
esac
|
esac
|
||||||
|
@ -13,7 +13,7 @@ if [ "${1}" = "micmute" ]; then
|
|||||||
kill -46 $(pidof dwmblocks)
|
kill -46 $(pidof dwmblocks)
|
||||||
else
|
else
|
||||||
vol=$(pactl get-sink-volume @DEFAULT_SINK@ | awk -F' / ' '{print $2}' | tr -d '%')
|
vol=$(pactl get-sink-volume @DEFAULT_SINK@ | awk -F' / ' '{print $2}' | tr -d '%')
|
||||||
[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] && volinfo="^c#eeeeee^^b#005577^\ue04f mute^d^" || volinfo="\ue050 ${vol}%%"
|
[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] && volinfo="^c#161616^^b#fd4285^\ue04f mute^d^" || volinfo="\ue050 ${vol}%%"
|
||||||
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] && micinfo="^c#eeeeee^^b#005577^\ue02b^d^" || micinfo="\ue02a^d^"
|
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] && micinfo="^c#161616^^b#fd4285^\ue02b^d^" || micinfo="\ue02a^d^"
|
||||||
printf "${micinfo} ${volinfo}"
|
printf "${micinfo} ${volinfo}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user