From 626bd5b7f1dbb0b330b6bdbf9aaf702241abda43 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 5 Jan 2012 20:50:14 +0100 Subject: Add keybindings + scripts to mute mic and speakers on x220 --- .config/awesome/awesome.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to '.config/awesome') diff --git a/.config/awesome/awesome.lua b/.config/awesome/awesome.lua index a3614d6..a704ed5 100644 --- a/.config/awesome/awesome.lua +++ b/.config/awesome/awesome.lua @@ -234,6 +234,9 @@ globalkeys = awful.util.table.join( awful.key({ }, "XF86MonBrightnessDown", function () awful.util.spawn("sudo brightness down") end), awful.key({}, "XF86TouchpadToggle", function () awful.util.spawn(cmd.tggle_tpd) end), awful.key({}, "XF86TouchpadOn", function () awful.util.spawn(cmd.tggle_tpd) end), + -- Manually mapped x220 micmute button to XF86Launch2 (prog2) in udev: keymap.rules + awful.key({}, "XF86AudioMute", function () awful.util.spawn(os.getenv("HOME") .. "/.scripts/toggle_mute.sh output") end), + awful.key({}, "XF86Launch2", function () awful.util.spawn(os.getenv("HOME") .. "/.scripts/toggle_mute.sh input") end), awful.key({ modkey, "Shift" }, "r", awesome.restart), awful.key({ modkey, "Shift" }, "q", awesome.quit), -- cgit