]> git.draconx.ca Git - fvwmconf.git/blobdiff - global/mpdkeys
Use mpdexec for key bindings.
[fvwmconf.git] / global / mpdkeys
diff --git a/global/mpdkeys b/global/mpdkeys
new file mode 100644 (file)
index 0000000..897706b
--- /dev/null
@@ -0,0 +1,19 @@
+# Copyright © 2023 Nick Bowler
+#
+# Misc MPD key bindings.
+#
+# License WTFPL2: Do What The Fuck You Want To Public License, version 2.
+# This is free software: you are free to do what the fuck you want to.
+# There is NO WARRANTY, to the extent permitted by law.
+
+Key Page_Up   A CM Exec exec $[infostore.mpdexec_cmd] previous
+Key Page_Down A CM Exec exec $[infostore.mpdexec_cmd] next
+Key End       A CM Exec exec $[infostore.mpdexec_cmd] stop
+Key Home      A CM Exec exec $[infostore.mpdexec_cmd] pause 1
+Key Insert    A CM Exec exec $[infostore.mpdexec_cmd] play
+
+Mouse 4 A CM Exec exec $[infostore.mpdexec_cmd] previous
+Mouse 5 A CM Exec exec $[infostore.mpdexec_cmd] next
+
+Test (!EnvMatch infostore.mpdexec_cmd *?) \
+  InfoStoreAdd mpdexec_cmd "$[FVWM_USERDIR]/gitmodules/mpdhacks/mpdexec.pl"