]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/widgets/awesompd.lua
awesome: add multimedia bindings
[dotfiles.git] / awesome / widgets / awesompd.lua
index 6ac896435332e498b6195f8e889f40702d895e06..d697be1a9823d689bdec9e9c0641a350418efde4 100644 (file)
@@ -43,6 +43,11 @@ musicwidget:register_buttons({
     { "",        awesompd.MOUSE_SCROLL_UP,   musicwidget:command_volume_up()   },
     { "",        awesompd.MOUSE_SCROLL_DOWN, musicwidget:command_volume_down() },
     { "",        awesompd.MOUSE_RIGHT,       musicwidget:command_show_menu()   },
+    { modkey,    "p",                        musicwidget:command_playpause()   },
+    { modkey,    ",",                        musicwidget:command_prev_track()   },
+    { modkey,    ".",                        musicwidget:command_next_track()   },
+    { { modkey, "Shift" },    ",",           musicwidget:command_previous_server()   },
+    { { modkey, "Shift" },    ".",           musicwidget:command_next_server()   },
     { "",        "XF86AudioPlay",            musicwidget:command_playpause()   },
     { "",        "XF86AudioPrev",            musicwidget:command_prev_track()  },
     { "",        "XF86AudioNext",            musicwidget:command_next_track()  },