867821a539bf4ff86d19ec213e599b8e555a3673
3 # song=$([ "$(mpc | wc -l)" = "1" ] && echo "[stopped]" || echo $(mpc | head -1))
4 # status=$(mpc | grep -o "\[p.*\]")
5 # echo -ne "♪: $song$status | "
9 grep -q "$1" /run
/network
/ifstate
&& echo "$2 | "
13 volume
=$
(amixer |
grep -A4 Master |
grep -o "[0-9]\{1,3\}%\|\[off\]")
14 echo -ne "♬: $volume | "
18 temp
=$
(sensors|
grep temp1|
head -1|
awk '{print $2}')
19 echo -ne "⚠: $temp | "
23 pa
="/sys/class/power_supply/BAT0"
24 power
=$
(echo "$(cat $pa/charge_now)*100/$(cat $pa/charge_full)" |
bc)
26 if [ "$(cat $pa/status)" = "Charging" ]; then
29 echo -ne "⚡: $power%$charge | "
33 echo "$(volume)$(net wlan0 W)$(net eth0 E)$(net usb0 U)$(temp)$(battery)$(date +%y-%m-%d\ %H:%M)"