Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
main_dir="$HOME/.cache/audio_taster"
success_file='downloaded-successfully'
duration='3000'
loop_it='0'
PLAY_CURRENT_DIRECTORY() {
killall mpv 2>/dev/null
for file in *; do
[ "$file" = '*' ] && break
[ "$file" = "$success_file" ] && continue
#!/bin/sh
# \033]PXRRGGBB
# X is in the range [0; F]
# RRGGBB is hexadecimal color code
printf '\033]P0202020' # black
printf '\033]P1604040' # red
printf '\033]P2406040' # green
printf '\033]P3606040' # yellow
printf '\033]P4404060' # blue
printf '\033]P5604060' # magenta