2023-03-24 14:40:17 -03:00
|
|
|
## ICONS FOR FUTURE VERSION
|
|
|
|
## wi fi
|
|
|
|
while true; do
|
|
|
|
curtime="$(date +%T)"
|
|
|
|
curtimeicon=""
|
|
|
|
curdate="$(date +'%a %d/%m')"
|
|
|
|
vol="$(amixer get Master)"
|
|
|
|
curvol=$(awk '{FS="[][]"} {print $2}' <<< "${vol}" | grep -o "[0-9]*")
|
|
|
|
curvolstatus=$(awk '{FS="[][]"} {print $6}' <<< "${vol}" | grep "\S")
|
|
|
|
curram="$(free -h | grep Mem | awk '{print $3"/"$2}')"
|
|
|
|
curramicon=""
|
|
|
|
if [ $curvol -ge 51 ]; then
|
|
|
|
curvolicon=""
|
|
|
|
elif [ $curvol -lt 51 ] && [ $curvol -gt 0 ]; then
|
|
|
|
curvolicon=""
|
|
|
|
else
|
|
|
|
curvolicon=""
|
|
|
|
fi
|
|
|
|
if [ $curvolstatus != "on" ]; then
|
|
|
|
curvolicon=""
|
|
|
|
fi
|
2024-05-10 18:33:25 -03:00
|
|
|
rootname="${curramicon} ${curram} - ${curvolicon} ${curvol}% - ${curdate} ${curtimeicon} ${curtime}"
|
2023-03-24 14:40:17 -03:00
|
|
|
xsetroot -name "${rootname}"
|
|
|
|
sleep 0.9
|
|
|
|
done
|