dotfiles/.local/bin/set_wall_clock

15 lines
379 B
Plaintext
Raw Normal View History

2020-05-12 18:25:43 +02:00
#!/bin/bash
2020-09-15 02:45:25 +02:00
feh --no-fehbg --bg-fill /tmp/output.png
2020-05-12 18:25:43 +02:00
cd ~/Images/clocks/Traveler/
date="date -d now+1minute"
month=$($date +%-m)
day=$($date +%-d)
hour=$(( ($($date +%-H)%12)*5 + $($date +%-M)/12))
minute=$($date +%-M)
convert "bg.jpg" "month${month}.png" -composite "day${day}.png" -composite "hour${hour}.png" -composite "minute${minute}.png" -composite "/tmp/output.png"