Use xtrlock via XFCE 4.8 lock button
I use one of those buttons to lock the screen but I don’t like xscreensaver (too ugly, don’t need the screensaver stuff), gnome-screensaver (too many dependencies), xlock and its successor xlockmore (too ugly) or slock (just a black blank screen always confuses me).
Good thing is that I found xtrlock which does what I want: It just shows a lock symbol instead of the mouse cursor, all screen content is still visible but user interaction is blocked until the current user password has been typed in.
This is just enough to prevent my 2 and 5 year old children from messing around with my laptop. So I installed it:
sudo apt-get install xtrlock
Problem was that the XFCE lock button calls xflock4 which is a simple shell script that has hardcoded support for the afore-mentioned set of lock programs, but not for xtrlock.
My simple solution was to take advantage of /usr/local/bin being usually before /usr/bin in the PATH and create a script /usr/local/bin/xflock4 with this content:
Make it executable with
sudo chmod a+x /usr/local/bin/xflock4
Now I can use the XFCE lock button and get what I want.
Alternatively, there are a couple of other light-weight lock programs for Linux:
|Ganessin on Redshift to reduce eye strain…|
|odoepner on Redshift to reduce eye strain…|
|ganessin on Redshift to reduce eye strain…|