Skip to content

Commit

Permalink
added audacious launcher, changed behaviour of bbmpris to cnnect to r…
Browse files Browse the repository at this point in the history
…ight display
  • Loading branch information
micolous committed Nov 10, 2012
1 parent a019228 commit 942ae19
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -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/
Expand Down
3 changes: 3 additions & 0 deletions 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
8 changes: 4 additions & 4 deletions bin/bbmpris.py
Expand Up @@ -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
Expand Down
Empty file modified bin/dock_car.sh 100644 → 100755
Empty file.
Empty file modified bin/undock_car.sh 100644 → 100755
Empty file.

0 comments on commit 942ae19

Please sign in to comment.