aboutsummaryrefslogtreecommitdiff
path: root/config.dot/awesome.link/keys.lua
blob: 5983ac9f13a9afef595cbb80456b055096a8c446 (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
54
55
56
57
58
59
60
61
62
63
64
-- 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, }, "e", function () awful.util.spawn("scrot '%Y-%m-%d-%H:%M:%S_$wx$h.png' -e 'mv $f ~/load/'") 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, }, "j", function () awful.util.spawn("gpick -p") 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 sclip") 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, }, "u", function () awful.util.spawn("qrpaste") end),
    awful.key({ modkey, }, "v", function () awful.util.spawn("terminal vim") end),
    awful.key({ modkey, }, "x", function () awful.util.spawn("terminal wicd-curses") end),
    awful.key({ modkey, }, "y", function () awful.util.spawn("xclip-clean") end),
    awful.key({ modkey, }, "z", function () awful.util.spawn("terminal shell root") 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("kvmx up tails") end),
    awful.key({ modkey, "Control" }, "b", function () awful.util.spawn("kvmx up bankline") end),
    awful.key({ modkey, "Control" }, "e", function () awful.util.spawn("kvmx up test") end),
    awful.key({ modkey, "Control" }, "s", function () awful.util.spawn("kvmx up signal") end),
    awful.key({ modkey, "Control" }, "t", function () awful.util.spawn("kvmx up tor") end),
    awful.key({ modkey, "Control" }, "v", function () awful.util.spawn("kvmx up vpn") end),
    awful.key({ modkey, "Control" }, "x", function () awful.util.spawn("kvmx up tor-expendable") end),
    awful.key({ modkey, "Control" }, "w", function () awful.util.spawn("kvmx up web") end),
    awful.key({ modkey, "Shift"   }, "a", function () awful.util.spawn("kvmx hibernate tails") end),
    awful.key({ modkey, "Shift"   }, "b", function () awful.util.spawn("kvmx hibernate bankline") end),
    awful.key({ modkey, "Shift"   }, "e", function () awful.util.spawn("kvmx hibernate test") end),
    awful.key({ modkey, "Shift"   }, "s", function () awful.util.spawn("kvmx hibernate signal") end),
    awful.key({ modkey, "Shift"   }, "t", function () awful.util.spawn("kvmx hibernate tor") end),
    awful.key({ modkey, "Shift"   }, "v", function () awful.util.spawn("kvmx hibernate vpn") end),
    awful.key({ modkey, "Shift"   }, "x", function () awful.util.spawn("kvmx hibernate tor-expendable") end),
    awful.key({ modkey, "Shift"   }, "w", function () awful.util.spawn("kvmx hibernate web") end)
)

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

-- Set keys
root.keys(globalkeys)