From 8c58663980c111ade06c3e77459485740153e72a Mon Sep 17 00:00:00 2001 From: buffet Date: Fri, 23 Jul 2021 08:30:15 +0000 Subject: [PATCH] Add i3lock keybind --- awesome/.config/awesome/configuration/apps.lua | 3 +++ awesome/.config/awesome/configuration/keys/global.lua | 2 ++ 2 files changed, 5 insertions(+) diff --git a/awesome/.config/awesome/configuration/apps.lua b/awesome/.config/awesome/configuration/apps.lua index c1a08ac..6321893 100644 --- a/awesome/.config/awesome/configuration/apps.lua +++ b/awesome/.config/awesome/configuration/apps.lua @@ -17,6 +17,9 @@ apps = { -- Your default screenshot tool screenshot = "flameshot gui", + -- Screenlocker + screenlocker = "i3lock -ec '#fdf6e3'", + -- brightness brightness_up = "brightnessctl s 5%+", brightness_down = "brightnessctl s 5%-", diff --git a/awesome/.config/awesome/configuration/keys/global.lua b/awesome/.config/awesome/configuration/keys/global.lua index 73fbed5..d97fc40 100644 --- a/awesome/.config/awesome/configuration/keys/global.lua +++ b/awesome/.config/awesome/configuration/keys/global.lua @@ -141,6 +141,8 @@ globalKeys = gears.table.join( {description = "take screenshot", group = "apps"}), awful.key({ modkey }, "i", function () awful.spawn(apps.browser) end, {description = "open browser", group = "apps"}), + awful.key({ modkey, "Shift" }, "x", function () awful.spawn(apps.screenlocker) end, + {description = "lock screen", group = "apps"}), -- Brightness awful.key({ modkey }, "x", function () awful.spawn(apps.brightness_up) end,