From a01c36e7f5a6d673ea6add1a4e852703a4f2b705 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 29 Oct 2019 10:50:36 +0000 Subject: [PATCH] Add awesome key combination for lock screen --- home/.config/awesome/rc.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/.config/awesome/rc.lua b/home/.config/awesome/rc.lua index d285b8c..a3c874f 100644 --- a/home/.config/awesome/rc.lua +++ b/home/.config/awesome/rc.lua @@ -329,7 +329,10 @@ globalkeys = gears.table.join( {description = "lua execute prompt", group = "awesome"}), -- Menubar awful.key({ modkey }, "p", function() menubar.show() end, - {description = "show the menubar", group = "launcher"}) + {description = "show the menubar", group = "launcher"}), + -- Lock screen + awful.key({ modkey }, "y", function() awful.util.spawn({ "/usr/local/bin/lock" }) end, + {description = "lock the screen", group = "awesome"}) ) clientkeys = gears.table.join(