Views:
4,973β
Votes: 3β
β
Solution
Tags:
window-manager
awesome
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1070660
Title:
Awesome WM - How do you set a hotkey to lock your system?
ID:
/2018/08/30/Awesome-WM-How-do-you-set-a-hotkey-to-lock-your-system_
Created:
August 30, 2018
Edited: August 30, 2018
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
From Arch Linux How to lock screen with awesome window manager [SOLVED]:
I will also recommend
xscreensaver
, simply because it has ways of
letting you know when the screen is locked (it comes with a ton of
screensavers to chose from). To lock usingxscrensaver
, do this:
- Install xscreensaver (Ed:
sudo apt install xscreensaver
)- Add
xscreensaver -no-splash &
to your$HOME/.xinitrc
(Ed: This file doesnβt exist in Ubuntu Unity 16.04. In Startup Applications you add the commandxscreensaver -nosplash
)- Make a keybinding in Awesome that spawns
xscreensaver-command -lock
. This will start the screensaver and ask for a password.Sucklessβ
slock
is rather small, but all it does is blank the screen
and wait for input. Input is not even echoed, you donβt see anything,
so you might as well have a locked box and not know it.
When you see (Ed: β¦) above, they are comments added by me and are not in Arch Linux answer