removed temp and frequency from status bar (no longer using a laptop)
This commit is contained in:
parent
c4d3a466b1
commit
93b87ad3b5
|
@ -4,20 +4,11 @@ while true; do
|
||||||
curtime="$(date +%T)"
|
curtime="$(date +%T)"
|
||||||
curtimeicon=""
|
curtimeicon=""
|
||||||
curdate="$(date +'%a %d/%m')"
|
curdate="$(date +'%a %d/%m')"
|
||||||
curtemp="$(bc -l <<< "scale = 1; $(cat /sys/class/thermal/thermal_zone0/temp)/1000")"
|
|
||||||
curfreq="$(bc -l <<< "scale=2; ($(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq) + 5000) / 1000000")"
|
|
||||||
vol="$(amixer get Master)"
|
vol="$(amixer get Master)"
|
||||||
curvol=$(awk '{FS="[][]"} {print $2}' <<< "${vol}" | grep -o "[0-9]*")
|
curvol=$(awk '{FS="[][]"} {print $2}' <<< "${vol}" | grep -o "[0-9]*")
|
||||||
curvolstatus=$(awk '{FS="[][]"} {print $6}' <<< "${vol}" | grep "\S")
|
curvolstatus=$(awk '{FS="[][]"} {print $6}' <<< "${vol}" | grep "\S")
|
||||||
curram="$(free -h | grep Mem | awk '{print $3"/"$2}')"
|
curram="$(free -h | grep Mem | awk '{print $3"/"$2}')"
|
||||||
curramicon=""
|
curramicon=""
|
||||||
mhz="$(bc -l <<< "${curfreq} < 1")"
|
|
||||||
if [ ${mhz} -eq 1 ]; then
|
|
||||||
curfreq="$(printf "%0.f\n" $(bc -l <<< "0.93 * 1000"))"
|
|
||||||
curfreq_suffix="MHz"
|
|
||||||
else
|
|
||||||
curfreq_suffix="GHz"
|
|
||||||
fi
|
|
||||||
if [ $curvol -ge 51 ]; then
|
if [ $curvol -ge 51 ]; then
|
||||||
curvolicon=""
|
curvolicon=""
|
||||||
elif [ $curvol -lt 51 ] && [ $curvol -gt 0 ]; then
|
elif [ $curvol -lt 51 ] && [ $curvol -gt 0 ]; then
|
||||||
|
@ -28,7 +19,7 @@ while true; do
|
||||||
if [ $curvolstatus != "on" ]; then
|
if [ $curvolstatus != "on" ]; then
|
||||||
curvolicon=""
|
curvolicon=""
|
||||||
fi
|
fi
|
||||||
rootname="${curramicon} ${curram} - ${curtemp}º - @${curfreq} ${curfreq_suffix} - ${curvolicon} ${curvol}% - ${curdate} ${curtimeicon} ${curtime}"
|
rootname="${curramicon} ${curram} - ${curvolicon} ${curvol}% - ${curdate} ${curtimeicon} ${curtime}"
|
||||||
xsetroot -name "${rootname}"
|
xsetroot -name "${rootname}"
|
||||||
sleep 0.9
|
sleep 0.9
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue