X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/e8d311850efa8def404d96e6c27bb78054aed94c..abc4878101c227a526ee0701b51e358e452ec7d9:/awesome/widgets/awesompd.lua diff --git a/awesome/widgets/awesompd.lua b/awesome/widgets/awesompd.lua index 38a9c02..0cf1c8f 100644 --- a/awesome/widgets/awesompd.lua +++ b/awesome/widgets/awesompd.lua @@ -23,7 +23,7 @@ musicwidget.album_cover_size = 50 musicwidget.mpd_config = os.getenv("XDG_CONFIG_HOME").."/mpd/mpd.conf" -- Specify the browser you use so awesompd can open links from -- Jamendo in it. -musicwidget.browser = "mimeo" +musicwidget.browser = "rifle" -- Specify decorators on the left and the right side of the -- widget. Or just leave empty strings if you decorate the widget -- from outside. @@ -32,9 +32,7 @@ musicwidget.rdecorator = " " -- Set all the servers to work with (here can be any servers you use) musicwidget.servers = { { server = "localhost", - port = 6600 }, - { server = "localhost", - port = 6601 } } + port = 6600 } } -- Set the buttons of the widget musicwidget:register_buttons({ { "", awesompd.MOUSE_LEFT, musicwidget:command_playpause() }, @@ -46,6 +44,7 @@ musicwidget:register_buttons({ { modkey, "p", musicwidget:command_playpause() }, { modkey, ",", musicwidget:command_prev_track() }, { modkey, ".", musicwidget:command_next_track() }, + { modkey, "'", function() musicwidget.to_notify = true end }, { { modkey, "Shift" }, ",", musicwidget:command_previous_server() }, { { modkey, "Shift" }, ".", musicwidget:command_next_server() }, { "", "XF86AudioPlay", musicwidget:command_playpause() },