From f153a3b868c54b3e09169d4055945b69bb606e3d Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Thu, 7 May 2015 21:56:58 +0200 Subject: add calculator --- rc.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rc.lua') 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 } }, } -- }}} -- cgit v1.2.3