|
|
- #! /bin/bash
-
- while true;
- do
- f=$(cat /sys/class/thermal/thermal_zone0/temp)
- t=$(echo $f | cut -b -2)°C
- d=$(date '+%a %b %d, %H:%M')
- b=$(cat /sys/class/power_supply/BAT1/capacity)
- p=$(pacman -Qu | grep -v "\[ignored\]" | wc -l)
- pi=$(pacman -Q | wc -l)
- c=$(docker ps -q | wc -l)
- n=$(cat /sys/class/net/wlp170s0/operstate)
- s=$(df -h / | tail -n 1 | awk '{ print $4 }')
- # temp=$(curl "http://wttr.in/Adelaide?format=%t")
- xsetroot -name " D: ${c} | /: ${s} | Pkgs: ${p}/${pi} | Net: ${n} | ${t} | ${b}% | ${d} "
- sleep 60;
- done;
|