From: martin f. krafft Date: Thu, 29 Sep 2016 14:44:26 +0000 (+0200) Subject: volume control without multimedia keys X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/697eac03898072945d8b9d26d39f124e65921f54?ds=inline;hp=--cc;pf=etc volume control without multimedia keys --- 697eac03898072945d8b9d26d39f124e65921f54 diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 2294136..cd7b300 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -505,9 +505,13 @@ awful.key({ cmdkey, "Shift" }, "x", function () awful.spawn("xscreensaver-comman -- function keys awful.key(nil, "XF86ScreenSaver", function () awful.spawn("xset dpms force off") end), awful.key(nil, "XF86AudioMute", function () awful.spawn("pactl set-sink-mute 0 toggle") end), +awful.key({ cmdkey }, "End", function () awful.spawn("pactl set-sink-mute 0 toggle") end), awful.key(nil, "XF86AudioLowerVolume", function () awful.spawn("pactl set-sink-volume 0 -2%") end), +awful.key({ cmdkey }, "Next", function () awful.spawn("pactl set-sink-volume 0 -2%") end), awful.key(nil, "XF86AudioRaiseVolume", function () awful.spawn("pactl set-sink-volume 0 +2%") end), +awful.key({ cmdkey }, "Prior", function () awful.spawn("pactl set-sink-volume 0 +2%") end), awful.key(nil, "XF86AudioMicMute", function () awful.spawn("pactl set-source-mute 1 toggle") end), +awful.key({ cmdkey }, "Home", function () awful.spawn("pactl set-source-mute 1 toggle") end), awful.key(nil, "XF86MonBrightnessDown", function () awful.spawn("xbacklight -dec 5%") end), awful.key(nil, "XF86MonBrightnessUp", function () awful.spawn("xbacklight -inc 5%") end), awful.key(nil, "XF86Display", function () awful.spawn("") end),