1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-24 22:26:43 +00:00
dotfiles/bin/acmus

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