mirror of
https://github.com/Phantop/dotfiles
synced 2024-12-25 06:36:42 +00:00
8 lines
247 B
Bash
Executable file
8 lines
247 B
Bash
Executable file
#!/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
|