summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2020-01-09 11:17:33 -0800
committerMike Crute <mike@crute.us>2020-01-09 11:17:33 -0800
commitb7e5fdbdc7ec285048b1227909d8766c71edbc99 (patch)
treede744598b1b705cdfc96af6bd38f4e92b1bb72d4 /.config
parentaf61e7ea295b5eeaa25caf583871d4269e1cc493 (diff)
downloaddotfiles-b7e5fdbdc7ec285048b1227909d8766c71edbc99.tar.bz2
dotfiles-b7e5fdbdc7ec285048b1227909d8766c71edbc99.tar.xz
dotfiles-b7e5fdbdc7ec285048b1227909d8766c71edbc99.zip
Rebind media keys to rhythmbox
Diffstat (limited to '.config')
-rw-r--r--.config/awesome/mcrute.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/.config/awesome/mcrute.lua b/.config/awesome/mcrute.lua
index 7f1fa73..bda26de 100644
--- a/.config/awesome/mcrute.lua
+++ b/.config/awesome/mcrute.lua
@@ -404,9 +404,12 @@ function add_global_keys(globalkeys)
404 -- Audio Controls for Spotify 404 -- Audio Controls for Spotify
405 -- TODO: Make this work with rhythmbox and other stuff. Maybe not 405 -- TODO: Make this work with rhythmbox and other stuff. Maybe not
406 -- needed at all if we can use some generic dbus functionality? 406 -- needed at all if we can use some generic dbus functionality?
407 awful.key({ }, "XF86AudioPrev", make_spawn("dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous")), 407 --awful.key({ }, "XF86AudioPrev", make_spawn("dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous")),
408 awful.key({ }, "XF86AudioPlay", make_spawn("dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause")), 408 --awful.key({ }, "XF86AudioPlay", make_spawn("dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause")),
409 awful.key({ }, "XF86AudioNext", make_spawn("dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next")), 409 --awful.key({ }, "XF86AudioNext", make_spawn("dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next")),
410 awful.key({ }, "XF86AudioPrev", make_spawn("dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous")),
411 awful.key({ }, "XF86AudioPlay", make_spawn("dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause")),
412 awful.key({ }, "XF86AudioNext", make_spawn("dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next")),
410 413
411 -- Backlight Controls 414 -- Backlight Controls
412 awful.key({ "Shift" }, "XF86MonBrightnessUp", make_spawn(light .. " -A 1")), 415 awful.key({ "Shift" }, "XF86MonBrightnessUp", make_spawn(light .. " -A 1")),