Created
March 27, 2018 20:09
-
-
Save yabbes/2d19ae77f26edc4e1adf94f342e63725 to your computer and use it in GitHub Desktop.
dwm-statusbar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xrunning=~/.dwm/isrunning | |
touch "$xrunning" | |
cpu_temperatur() { | |
echo $(head -c 2 /sys/class/thermal/thermal_zone0/temp)C | |
} | |
while [[ -f "$xrunning" ]]; do | |
DATUM="$(date '+%R:%S')" | |
IPADDR="$(ip addr show enp7s0|grep inet |head -1 | awk '{print $2}')" | |
sleep 1 | |
xsetroot -name "YABBES @ $IPADDR + $DATUM CPU @ $(cpu_temperatur)" | |
done & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment