diff options
Diffstat (limited to 'private_dot_local/bin/executable_timer')
| -rw-r--r-- | private_dot_local/bin/executable_timer | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/private_dot_local/bin/executable_timer b/private_dot_local/bin/executable_timer new file mode 100644 index 0000000..1f53743 --- /dev/null +++ b/private_dot_local/bin/executable_timer @@ -0,0 +1,17 @@ +#!/bin/sh + +remaining="$1" + +while [ "$remaining" -gt 0 ]; do + printf '%s\r' "$(date -ud "@$remaining" +%T)" + remaining="$((remaining - 1))" + sleep 1 +done + +#mpv --really-quiet ~/media/music/Sabaton-The_Last_Stand/10.Winged_Hussars.flac +#mpv --really-quiet ~/media/old-church-bell-6298.mp3 & +#sleep 2 +#mpv --really-quiet ~/media/old-church-bell-6298.mp3 & +#sleep 2 +#mpv --really-quiet ~/media/old-church-bell-6298.mp3 & +#sleep 2 |