mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
Changed awesomewm suspend command
This commit is contained in:
parent
e3714459a3
commit
300dc7e6c5
@ -54,7 +54,7 @@ local function worker(user_args)
|
|||||||
local onlogout = args.onlogout or function () awesome.quit() end
|
local onlogout = args.onlogout or function () awesome.quit() end
|
||||||
local onlock = args.onlock or function() awful.spawn.with_shell("dm-tool lock") end
|
local onlock = args.onlock or function() awful.spawn.with_shell("dm-tool lock") end
|
||||||
local onreboot = args.onreboot or function() awful.spawn.with_shell("reboot") end
|
local onreboot = args.onreboot or function() awful.spawn.with_shell("reboot") end
|
||||||
local onsuspend = args.onsuspend or function() awful.spawn.with_shell("loginctl suspend") end
|
local onsuspend = args.onsuspend or function() awful.spawn.with_shell("systemctl suspend") end
|
||||||
local onpoweroff = args.onpoweroff or function() awful.spawn.with_shell("shutdown now") end
|
local onpoweroff = args.onpoweroff or function() awful.spawn.with_shell("shutdown now") end
|
||||||
|
|
||||||
local menu_items = {
|
local menu_items = {
|
||||||
|
|||||||
@ -370,18 +370,6 @@ globalkeys = gears.table.join(
|
|||||||
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end,
|
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end,
|
||||||
{description = "select previous", group = "layout"}),
|
{description = "select previous", group = "layout"}),
|
||||||
|
|
||||||
awful.key({ modkey, "Control" }, "n",
|
|
||||||
function ()
|
|
||||||
local c = awful.client.restore()
|
|
||||||
-- Focus restored client
|
|
||||||
if c then
|
|
||||||
c:emit_signal(
|
|
||||||
"request::activate", "key.unminimize", {raise = true}
|
|
||||||
)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
{description = "restore minimized", group = "client"}),
|
|
||||||
|
|
||||||
-- Prompt
|
-- Prompt
|
||||||
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
|
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
|
||||||
{description = "run prompt", group = "launcher"}),
|
{description = "run prompt", group = "launcher"}),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user