Skip to content

Instantly share code, notes, and snippets.

@RyuKojiro
Last active June 5, 2024 11:11
Show Gist options
  • Save RyuKojiro/0bfdfcb0d00e3d386de6 to your computer and use it in GitHub Desktop.
Save RyuKojiro/0bfdfcb0d00e3d386de6 to your computer and use it in GitHub Desktop.
A simple clock for dwm
#!/bin/sh
while true
do
xsetroot -name "$(uptime | sed 's/.*load averages: //') - $(date +"%D %R:%S" ) - $(envstat -s acpibat0:charge | grep charge | sed 's/.*(//' | sed 's/).*//')"
sleep 1s;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment