From 2f782fcb52e50c4d8de40a2cb1ce5d926a0c27ff Mon Sep 17 00:00:00 2001 From: dongkc Date: Sun, 27 Dec 2015 09:15:51 +0800 Subject: [PATCH] add poweroff function --- rc.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc.lua b/rc.lua index 1224ccb..eda1684 100644 --- a/rc.lua +++ b/rc.lua @@ -482,6 +482,7 @@ globalkeys = awful.util.table.join( awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), awful.key({ modkey, "Control" }, "r", awesome.restart), awful.key({ modkey, "Shift" }, "q", awesome.quit), + awful.key({ modkey, "Shift" }, "q", awesome.quit), -- Dropdown terminal awful.key({ modkey, }, "z", function () drop(terminal) end), @@ -512,6 +513,7 @@ globalkeys = awful.util.table.join( volumewidget.update() end), + awful.key({ }, "F12", function() os.execute("poweroff") end), -- BACKLIGHT control awful.key({ }, "XF86MonBrightnessUp", function() os.execute("xbacklight -inc 5") end), awful.key({ }, "XF86MonBrightnessDown", function() os.execute("xbacklight -dec 5") end),