awesomewm/binds/system/system.lua

39 lines
648 B
Lua
Raw Normal View History

2021-08-01 07:24:26 -07:00
return gears.table.join(
awful.key( {"Mod4"}, "p",
function ()
awful.prompt.run {
prompt = "<b>Really shutdown? (y/n/r) </b>",
textbox = awful.screen.focused().mypromptbox.widget,
exe_callback = bin.system.shutdown
}
end,
{
description = "Shutdown",
group = "System"
}
2021-11-28 19:49:38 -08:00
),
awful.key( {"Mod4"}, "a",
function ()
bin.system.lock()
end,
{
description = "Lock screen",
group = "System"
}
),
awful.key( {"Mod4", "Control"}, "x",
function ()
-- requires sudoers rule
awful.spawn("sudo systemctl restart lightdm")
end,
{
description = "Restart lightdm",
group = "System"
}
2021-08-01 07:24:26 -07:00
)
)