3 # Sample application launcher.
4 # Angelo Arrifano <miknix@gmail.com>
5 # http://quickstart.sourceforge.net
7 # Put this script on ~/.config/autostart.
10 # Add your button actions here
11 LAUNCH["QBTN"]="freevo"
12 LAUNCH["DBTN"]="amarok -l ~/playlist.m3u -p"
14 # The sysfs file telling which button was pressed
15 PRESSEDFILE="/sys/devices/platform/quickstart/pressed_button"
17 if [[ ! -e "$PRESSEDFILE" ]]; then
21 PRESSEDBUTTON="$(cat "$PRESSEDFILE")"
23 if [[ "$PRESSEDBUTTON" != "none" ]]; then
24 echo -n "none" > "$PRESSEDFILE"
25 ${LAUNCH[$PRESSEDBUTTON]}; exit $?