commit 3cc3405d52e5eb6418eec3cf333f71df6f8c8254 (tree)
parent 1e2d48fd95df1515f7940859959af1f0b5e7e6bf
Author: Motiejus Jakštys <motiejus@uber.com>
Date: Thu, 13 Aug 2020 11:08:11 +0300
screen lock
Diffstat:
2 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/X/.config/awesome/rc.lua b/X/.config/awesome/rc.lua
@@ -332,16 +332,16 @@ globalkeys = gears.table.join(
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
{description = "run prompt", group = "launcher"}),
- awful.key({ modkey }, "x",
- function ()
- awful.prompt.run {
- prompt = "Run Lua code: ",
- textbox = awful.screen.focused().mypromptbox.widget,
- exe_callback = awful.util.eval,
- history_path = awful.util.get_cache_dir() .. "/history_eval"
- }
- end,
- {description = "lua execute prompt", group = "awesome"}),
+ --awful.key({ modkey }, "x",
+ -- function ()
+ -- awful.prompt.run {
+ -- prompt = "Run Lua code: ",
+ -- textbox = awful.screen.focused().mypromptbox.widget,
+ -- exe_callback = awful.util.eval,
+ -- history_path = awful.util.get_cache_dir() .. "/history_eval"
+ -- }
+ -- end,
+ -- {description = "lua execute prompt", group = "awesome"}),
-- Menubar
awful.key({ modkey }, "p", function() menubar.show() end,
{description = "show the menubar", group = "launcher"}),
@@ -361,6 +361,9 @@ globalkeys = gears.table.join(
end),
awful.key({}, "XF86MonBrightnessDown", function()
awful.util.spawn("brightness down")
+ end),
+ awful.key({ modkey }, "x", function()
+ awful.spawn.with_shell("i3lock --ignore-empty-password --pointer win --color=3a6ea5")
end)
)
diff --git a/X/.xsessionrc b/X/.xsessionrc
@@ -4,4 +4,4 @@ gpgconf --launch gpg-agent
nm-applet &
blueman-applet &
pnmixer &
-xss-lock -- i3lock --ignore-empty-password --pointer win --color=$lockbg &
+xss-lock -- i3lock --ignore-empty-password --pointer win --color=3a6ea5 &