mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-19 21:32:48 +00:00
8 lines
247 B
Plaintext
8 lines
247 B
Plaintext
|
#!/bin/bash
|
||
|
source=https://d17orwheorv96d.cloudfront.net
|
||
|
hour=$(date +%-I%p|tr APM apm)
|
||
|
curl $source/$1/$hour.ogg -so/tmp/ac
|
||
|
|
||
|
loops=$(bc <<< "(3600 - $(date +%s) % 3600)/$(soxi -D /tmp/ac)")
|
||
|
mpv --vid=no --no-resume-playback --loop=$loops /tmp/ac
|