X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/57564e8187c8ac03a6f2cfd295ba7f85c6d0edc6..e8d311850efa8def404d96e6c27bb78054aed94c:/awesome/widgets/awesompd.lua diff --git a/awesome/widgets/awesompd.lua b/awesome/widgets/awesompd.lua index 6ac8964..38a9c02 100644 --- a/awesome/widgets/awesompd.lua +++ b/awesome/widgets/awesompd.lua @@ -7,7 +7,7 @@ musicwidget.scrolling = true -- If true, the text in the widget will be scrolled musicwidget.output_size = 30 -- Set the size of widget in symbols musicwidget.update_interval = 1 -- Set the update interval in seconds -- Set the folder where icons are located -musicwidget.path_to_icons = "/home/ramsi/.config/awesome/widgets/awesompd/icons" +musicwidget.path_to_icons = awful.util.getdir("config").."/widgets/awesompd/icons" -- Set the default music format for Jamendo streams. You can change -- this option on the fly in awesompd itself. -- possible formats: awesompd.FORMAT_MP3, awesompd.FORMAT_OGG @@ -20,7 +20,7 @@ musicwidget.show_album_cover = true musicwidget.album_cover_size = 50 -- This option is necessary if you want the album covers to be shown -- for your local tracks. -musicwidget.mpd_config = "/home/ramsi/.config/mpd/mpd.conf" +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" @@ -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() },