1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-23 11:32:32 +00:00

add poweroff function

This commit is contained in:
dongkc 2015-12-27 09:15:51 +08:00
parent bc83e9fc52
commit 2f782fcb52

2
rc.lua
View file

@ -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),