summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-10 22:40:26 +0100
committerAnton Khirnov <anton@khirnov.net>2013-03-10 22:40:26 +0100
commitfdba43f735f220a138d80927376dd6b4e0401085 (patch)
tree26c8f9c10319342a555b4046f3f0587a0a8f91fd
parent505c6a0e3897eb1b5a23f85de668612dad4f2d4d (diff)
MPDControl: switch to using mpc instead of echo.
This adds a dependency on mpc, but allows for more advanced controls. Add new bindings to control volume.
-rw-r--r--bindings.config7
-rw-r--r--functions.config2
2 files changed, 5 insertions, 4 deletions
diff --git a/bindings.config b/bindings.config
index 0cf3227..97053d7 100644
--- a/bindings.config
+++ b/bindings.config
@@ -112,8 +112,9 @@ Key Space A 4 Exec exec import -window root $[HOME]/screen-$(date +%Y%m%d_%H%M%S
Key W A 4 RandomWall
#MPD control
-Key grave A 4 MPDControl pause
+Key grave A 4 MPDControl toggle
Key B A 4 MPDControl next
-Key Z A 4 MPDControl previous
+Key Z A 4 MPDControl prev
Key P A 4 MPDControl play
-
+Key Page_Up A 4 MPDControl volume +1
+Key Page_Down A 4 MPDControl volume -1
diff --git a/functions.config b/functions.config
index b0c36ea..828dc2a 100644
--- a/functions.config
+++ b/functions.config
@@ -82,7 +82,7 @@ AddToFunc RandomWall
DestroyFunc MPDControl
AddToFunc MPDControl
-+ I Exec /bin/echo -e "$0\nclose"|nc -q -1 localhost 6600
++ I Exec mpc -q $*
############################
#Don't steal focus