diff --git a/Makefile b/Makefile index f61d4b4..549dce4 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ install_car: install -o0 -g0 bin/bbmop.py /usr/local/bin/ install -o0 -g0 bin/bbmpris.py /usr/local/bin/ install -o0 -g0 bin/powerman.py /usr/local/sbin/ + install -o0 -g0 bin/auxpra.sh /usr/local/bin/ # only used in suspend mode #install -o0 -g0 bin/dock_car.sh /usr/local/bin/ #install -o0 -g0 bin/undock_car.sh /usr/local/bin/ diff --git a/bin/auxpra.sh b/bin/auxpra.sh new file mode 100755 index 0000000..14b8cba --- /dev/null +++ b/bin/auxpra.sh @@ -0,0 +1,3 @@ +#!/bin/sh +xpra start :100 --start-child=audacious --xvfb='Xvfb +extension Composite -screen 0 1024x600x24+32 -nolisten tcp -noreset -auth $XAUTHORITY' +#DISPLAY=:100 audacious diff --git a/bin/bbmpris.py b/bin/bbmpris.py index 98e16d4..4d1efb2 100755 --- a/bin/bbmpris.py +++ b/bin/bbmpris.py @@ -28,15 +28,15 @@ print "got button press on %s, button %s" % (event.joy, event.button) if event.button == 0: - system('mpris-remote next') # next + system('DISPLAY=:100 mpris-remote next') # next elif event.button == 1: if paused: - system('mpris-remote play') # play/pause + system('DISPLAY=:100 mpris-remote play') # play/pause else: - system('mpris-remote pause') + system('DISPLAY=:100 mpris-remote pause') paused = not paused elif event.button == 2: - system('mpris-remote prev') + system('DISPLAY=:100 mpris-remote prev') # sleep diff --git a/bin/dock_car.sh b/bin/dock_car.sh old mode 100644 new mode 100755 diff --git a/bin/undock_car.sh b/bin/undock_car.sh old mode 100644 new mode 100755