#!/bin/bash | #!/bin/bash | ||||
msound error.mp3 | |||||
msound error | |||||
notify-send -u critical -i ~/assets/img/error.png "$1" "$2" | notify-send -u critical -i ~/assets/img/error.png "$1" "$2" |
#!/bin/bash | #!/bin/bash | ||||
msound ding.mp3 | |||||
msound ding | |||||
notify-send -u low -i ~/assets/img/info.png "$1" "$2" | notify-send -u low -i ~/assets/img/info.png "$1" "$2" |
mupload "$DIR/pic.png" "img/${1}.png" | mupload "$DIR/pic.png" "img/${1}.png" | ||||
if [ $? -eq 0 ]; then | if [ $? -eq 0 ]; then | ||||
msound camera-shutter.mp3 | |||||
msound camera-shutter | |||||
else | else | ||||
merror "mshot" "Couldn't upload image file." | merror "mshot" "Couldn't upload image file." | ||||
echo "An error occurred." 1>&2 | echo "An error occurred." 1>&2 |
#!/bin/bash | #!/bin/bash | ||||
mplayer -nogui "$HOME/assets/sounds/$1" </dev/null >/dev/null 2>&1 & | |||||
mplayer -nogui "$HOME/assets/sounds/${1}.mp3" </dev/null >/dev/null 2>&1 & |