Skip to content

Instantly share code, notes, and snippets.

@mebius01
Created February 26, 2013 05:31
будильник. Рандомно выбирает альбом и играет его. Вторая строчка отвечает за уровень звука. Аккуратно скопипижен с просторов интернета
#!/bin/bash
amixer -c 0 sset Master,0 65%
find /media/hlam/Music/ -type d |
( i=0;
while read line;
do lines[i++]="$line";
done;
mpg123 "${lines[$RANDOM % $i]}"/* )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment