summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2015-05-07 21:56:58 +0200
committerNicolas Schodet2015-05-07 22:01:36 +0200
commitf153a3b868c54b3e09169d4055945b69bb606e3d (patch)
tree9a093a5eea9f91e03a8006686ac5d42afe730f04
parent1ec5e3a452bef1e27ac7cad70635592cb48b8514 (diff)
add calculator
-rw-r--r--rc.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/rc.lua b/rc.lua
index ff34978..bc4dac1 100644
--- a/rc.lua
+++ b/rc.lua
@@ -24,6 +24,7 @@ terminal_small = "x-terminal-emulator -name urxvt-small"
editor = os.getenv("EDITOR") or "editor"
editor_cmd = terminal .. " -e " .. editor
lock = "slock"
+calc = terminal .. " -sh 70 -name calc -e orpie"
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
@@ -210,6 +211,7 @@ globalkeys = awful.util.table.join(
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
awful.key({ modkey, "Shift" }, "Return", function () awful.util.spawn(terminal_small) end),
awful.key({ modkey, }, "v", function () awful.util.spawn(lock) end),
+ awful.key({ modkey, }, "c", function () awful.util.spawn(calc) end),
awful.key({ modkey, "Control" }, "r", awesome.restart),
awful.key({ modkey, "Shift" }, "q", awesome.quit),
@@ -319,6 +321,8 @@ awful.rules.rules = {
properties = { tag = tags[1][4] } },
{ rule = { class = "Display" },
properties = { floating = true } },
+ { rule = { name = "orpie" },
+ properties = { floating = true, ontop = true } },
}
-- }}}