Skip to content

Instantly share code, notes, and snippets.

@bebyx
Last active March 12, 2020 21:27
Show Gist options
  • Save bebyx/0d3c1d5f827f28934b0224df22c8483c to your computer and use it in GitHub Desktop.
Save bebyx/0d3c1d5f827f28934b0224df22c8483c to your computer and use it in GitHub Desktop.
Script for running date and other stuff in dwm status bar
#!/bin/sh
let loop=0
while true; do
if [[ $loop%300 -eq 0 ]]; then
weather=$(curl wttr.in/Lviv,Ukraine?format=1)
let loop=0
fi
xsetroot -name " $weather | $(date '+%b %d %a') | $(date '+%H:%M:%S') "
let loop=$loop+1
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment