Created
March 12, 2011 04:44
-
-
Save aanoaa/867034 to your computer and use it in GitHub Desktop.
aplay random sounds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use List::Util qw(shuffle); | |
my ($music) = shuffle <$ENV{HOME}/.git/sounds/*>; | |
exec "aplay $music > /dev/null 2>&1 &"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use List::Util qw(shuffle);
my ($music) = shuffle <$ENV{HOME}/.git/sounds/*>;
exec "aplay $music > dev/null 2>&1 &";