cdebaf874829c9485cd82123078c9e0b88096330
3 grep -q "$1" /run
/network
/ifstate
&& echo "$2 <$(iwconfig "$1" 2>/dev/null | grep -Po "(?
<=ESSID
:\").
*(?
=\")")> | "
7 volume
=$
(amixer |
grep -A4 Master |
grep -o "[0-9]\{1,3\}%\|\[off\]")
8 echo -ne "♬: $volume | "
12 temp
=$
(sensors|
grep temp1|
head -1|
awk '{print $2}')
13 echo -ne "⚠: $temp | "
17 pa
="/sys/class/power_supply/BAT0"
18 power
=$
(echo "$(cat $pa/charge_now)*100/$(cat $pa/charge_full)" |
bc)
20 if [ "$(cat $pa/status)" = "Charging" ]; then
23 echo -ne "⚡: $power%$charge | "
27 echo "$(volume)$(net wlan0 W)$(net eth0 E)$(net usb0 U)$(temp)$(battery)$(date +%y-%m-%d\ %H:%M)"