Created
February 20, 2010 21:35
-
-
Save dgmike/309927 to your computer and use it in GitHub Desktop.
Minimicroplayer para apenas um arquivo
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
#!/bin/bash | |
# | |
# Script para tocar musicas de forma simples e fácil no Linux | |
# (ubuntu, kubuntu, edubuntu, Debian, Mandriva, etc). Eu coloquei | |
# um botão na minha barra superior para tocar sempre que eu achar | |
# conveniente. Por exemplo, download de um vídeo. | |
# | |
# Claro, existem outros players como o RithmBox ou o VLC, mas eu | |
# criei algo mais simples só para tocar a musica que eu quiser... | |
# | |
# Para parar a musica, basta executar "killall mplayer" | |
# | |
if [ "$1" == "" ]; then | |
arquivo=`zenity --file-selection --multiple --filename="~/musica/"` | |
else | |
arquivo=$1 | |
fi | |
notify-send "Tocando:" "$arquivo" | |
mplayer "$arquivo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment