aboutsummaryrefslogtreecommitdiff
path: root/config.dot/awesome.link/keys.lua
blob: 2cf6ac9873b18387ab954cff8db3e7098167a0f9 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
-- Key bindings
globalkeys = awful.util.table.join(root.keys(),
    awful.key({ modkey, }, "a", function () awful.util.spawn("thunar") end),
    awful.key({ modkey, }, "b", function () awful.util.spawn("firefox-profile default") end),
    awful.key({ modkey, }, "c", function () awful.util.spawn("terminal xcalendar") end),
    awful.key({ modkey, }, "d", function () awful.util.spawn("terminal shell local media") end),
    awful.key({ modkey, }, "g", function () awful.util.spawn("gimp") end),
    awful.key({ modkey, }, "h", function () awful.util.spawn("terminal chat") end),
    awful.key({ modkey, }, "i", function () awful.util.spawn("geeqie") end),
    awful.key({ modkey, }, "m", function () awful.util.spawn("terminal xmail") end),
    awful.key({ modkey, }, "n", function () awful.util.spawn("terminal news") end),
    awful.key({ modkey, }, "o", function () awful.util.spawn("chromium-browser --incognito") end),
    awful.key({ modkey, }, "p", function () awful.util.spawn("terminal keyringer default") end),
    awful.key({ modkey, }, "s", function () awful.util.spawn("xsuspend") end),
    awful.key({ modkey, }, "t", function () awful.util.spawn("tor-browser") end),
    awful.key({ modkey, }, "v", function () awful.util.spawn("terminal vim") end),
    awful.key({ modkey, }, "x", function () awful.util.spawn("terminal shell network") end),
    awful.key({ modkey, }, "z", function () awful.util.spawn("terminal shell root") end),
    awful.key({ modkey, }, "y", function () awful.util.spawn("xclip-clean") end),

    -- Unused
    --awful.key({ modkey, }, "e", function () awful.util.spawn("command") end),
    --awful.key({ modkey, }, "u", function () awful.util.spawn("command") end),

    -- Xlock
    awful.key({ modkey, }, "Print", 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 set Master toggle", false) end),

    -- Hibernate
    awful.key({  }, "XF86Launch1", function () awful.util.spawn("xhibernate") end),

    -- Virtual environments
    awful.key({ modkey, "Control" }, "a", function () awful.util.spawn("vbox up tails") end),
    awful.key({ modkey, "Control" }, "b", function () awful.util.spawn("vbox up bankline") end),
    awful.key({ modkey, "Control" }, "t", function () awful.util.spawn("vbox up tor") end),
    awful.key({ modkey, "Control" }, "w", function () awful.util.spawn("vbox up web") end),
    awful.key({ modkey, "Shift"   }, "a", function () awful.util.spawn("vbox down tails") end),
    awful.key({ modkey, "Shift"   }, "b", function () awful.util.spawn("vbox down bankline") end),
    awful.key({ modkey, "Shift"   }, "t", function () awful.util.spawn("vbox down tor") end),
    awful.key({ modkey, "Shift"   }, "w", function () awful.util.spawn("vbox down web") end)
)

-- Append keys from music widget
if awesompd then
  musicwidget:append_global_keys()
end

-- Set keys
root.keys(globalkeys)