--- /dev/null
+#!/bin/sh
+
+if [ -n "$(pgrep pianobar)" ]
+then
+ notify-send -i /usr/share/icons/powermate/skip-backward.png "skip backward "
+ mpc next
+fi
--- /dev/null
+#!/bin/sh
+
+if [ -n "$(pgrep pianobar)" ]
+then
+ pianobar-toggle
+else
+ if [ -n "$(pgrep mpd)" ]
+ then
+ mpc toggle
+ fi
+fi
--- /dev/null
+#!/bin/sh
+
+if [ -n "$(pgrep pianobar)" ]
+then
+ notify-send -i /usr/share/icons/powermate/skip-forward.png "skipping "
+ pianobar-next
+else
+ if [ -n "$(pgrep mpd)" ]
+ then
+ notify-send -i /usr/share/icons/powermate/skip-forward.png "skipping "
+ mpc next
+ fi
+fi
--- /dev/null
+#!/bin/bash
+
+export DISPLAY=:0
+amixer set Master 1-
+notify-send -i /usr/share/icons/powermate/volume-down.png " "
--- /dev/null
+#!/bin/bash
+
+export DISPLAY=:0
+status=$(amixer get Master | tail -n1 | awk '{print $NF}')
+status=$(echo "${status%]}")
+status=$(echo "${status#[}")
+if [ $status == "on" ]
+ then notify-send -i /usr/share/icons/powermate/volume-on.png " "
+elif [ $status == "off" ]
+ then notify-send -i /usr/share/icons/powermate/volume-mute.png " "
+fi
+amixer set Master toggle
--- /dev/null
+#!/bin/bash
+
+export DISPLAY=:0
+amixer set Master 1+
+notify-send -i /usr/share/icons/powermate/volume-up.png " "