-- Key bindings globalkeys = awful.util.table.join(root.keys(), awful.key({ modkey, "Control" }, "f", function () awful.util.spawn("firefox") end), awful.key({ modkey, "Control" }, "v", function () awful.util.spawn("gvim") end), awful.key({ modkey, "Control" }, "m", function () awful.util.spawn("terminal xmutt") end), awful.key({ modkey, "Control" }, "g", function () awful.util.spawn("gimp") end), awful.key({ modkey, "Control" }, "i", function () awful.util.spawn("gqview") end), awful.key({ modkey, "Control" }, "a", function () awful.util.spawn("audacious") end), awful.key({ modkey, "Control" }, "l", function () awful.util.spawn("xlock") end), awful.key({ modkey, "Control" }, "s", function () awful.util.spawn("xsuspend") end), awful.key({ modkey, "Control" }, "h", function () awful.util.spawn("xhibernate") end), awful.key({ modkey, "Control" }, "c", function () awful.util.spawn("chromium-browser") end), awful.key({ modkey, "Control" }, "n", function () awful.util.spawn("firefox-profile normal") end), awful.key({ modkey, "Control" }, "t", function () awful.util.spawn("thunar") end), awful.key({ modkey, "Control" }, "w", function () awful.util.spawn("terminal xwyrd") end), --awful.key({ modkey, "Control" }, "b", function () awful.util.spawn("terminal irssi") end), -- Xlock awful.key({ }, "XF86ScreenSaver", function () awful.util.spawn("xlock") end), -- Volume keys awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 9%+", false) end), awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 9%-", false) end), awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer sset Master toggle", false) end) ) -- Append keys from music widget if awesompd then musicwidget:append_global_keys() end -- Set keys root.keys(globalkeys)