Added lock screen keybind

This commit is contained in:
2021-11-28 19:49:38 -08:00
parent 44eb4336e7
commit 1ab6b4f51d
5 changed files with 49 additions and 0 deletions

View File

@ -11,5 +11,28 @@ return gears.table.join(
description = "Shutdown",
group = "System"
}
),
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"
}
)
)