Last active
March 12, 2020 21:27
-
-
Save bebyx/0d3c1d5f827f28934b0224df22c8483c to your computer and use it in GitHub Desktop.
Script for running date and other stuff in dwm status bar
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
#!/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