aboutsummaryrefslogtreecommitdiff
path: root/modules/awesome/config.dot/awesome.link/keys.lua
blob: 0ec5e0cc1c9388d36f0d8be5a8c159d7598c2be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
-- 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" }, "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)
)

-- Set keys
root.keys(globalkeys)