From: Samir Benmendil Date: Fri, 23 Jan 2015 18:13:05 +0000 (+0000) Subject: awesome: add multimedia bindings X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/2ecdfec76dd889aaa1bd6a850603ffada26ce2b9?ds=sidebyside awesome: add multimedia bindings --- diff --git a/awesome/bindings.lua b/awesome/bindings.lua index ddade27..6e06e67 100644 --- a/awesome/bindings.lua +++ b/awesome/bindings.lua @@ -59,7 +59,7 @@ globalkeys = awful.util.table.join(globalkeys, awful.util.getdir("cache") .. "/history_eval") end), -- Menubar - awful.key({ modkey }, "p", function() menubar.show() end), + -- awful.key({ modkey }, "p", function() menubar.show() end), -- My Keys {{{2 awful.key({ modkey, }, "Left", awful.tag.viewprev ), @@ -92,7 +92,10 @@ globalkeys = awful.util.table.join(globalkeys, -- Volume awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("ponymix increase 5") end), awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("ponymix decrease 5") end), - awful.key({ }, "XF86AudioMute", function () awful.util.spawn("ponymix toggle") end) + awful.key({ }, "XF86AudioMute", function () awful.util.spawn("ponymix toggle") end), + awful.key({ modkey }, "F10", function () awful.util.spawn("ponymix toggle") end), + awful.key({ modkey }, "F11", function () awful.util.spawn("ponymix decrease 5") end), + awful.key({ modkey }, "F12", function () awful.util.spawn("ponymix increase 5") end) ) -- Client keys {{{1 diff --git a/awesome/rc.lua b/awesome/rc.lua index 9d8a7d3..d7d3a43 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -50,10 +50,10 @@ if beautiful.wallpaper then end -- Require files {{{1 +require("bindings") require("tags") require("menu") require("topbar") -require("bindings") require("rules") require("conky") require("autostart") diff --git a/awesome/widgets/awesompd.lua b/awesome/widgets/awesompd.lua index 6ac8964..d697be1 100644 --- a/awesome/widgets/awesompd.lua +++ b/awesome/widgets/awesompd.lua @@ -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() },