diff options
Diffstat (limited to 'config.dot/awesome.link/keys.lua')
-rw-r--r-- | config.dot/awesome.link/keys.lua | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/config.dot/awesome.link/keys.lua b/config.dot/awesome.link/keys.lua new file mode 100644 index 0000000..f056aca --- /dev/null +++ b/config.dot/awesome.link/keys.lua @@ -0,0 +1,33 @@ +-- 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 mutt") 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" }, "k", function () awful.util.spawn("kedpm") end), + awful.key({ modkey, "Control" }, "c", function () awful.util.spawn("chromium-browser") end), + awful.key({ modkey, "Control" }, "t", function () awful.util.spawn("thunar") end), + awful.key({ modkey, "Control" }, "w", function () awful.util.spawn("terminal 'sleep 0.2 && wyrd'") 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) |