Skip to content

Instantly share code, notes, and snippets.

@yabbes
Created March 27, 2018 20:09
Show Gist options
  • Save yabbes/2d19ae77f26edc4e1adf94f342e63725 to your computer and use it in GitHub Desktop.
Save yabbes/2d19ae77f26edc4e1adf94f342e63725 to your computer and use it in GitHub Desktop.
dwm-statusbar
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