Screen Locking on XFCE
This may be old-school, but I like to have X screen locking. It does not come by default on XFCE and, by extension on Security OnionTo get it working, I did the following:
apt-get install xautolockCreated
~/.config/autostart/runXinitrc.desktop with the following content[Desktop Entry] Version=1.0 Name=Script Type=Application Exec=/ASOLUTE/PATH/TO/HOME/.xinitrc Terminal=false StartupNotify=false Hidden=falseCreated
.xinitrc with the following content:xautolock -time 15 -locker /usr/bin/xflock4 &And, as an added bonus, for those who want the control key to the left of
A where God and Richard Stallman intended it, create ~/.config/autostart/ with the following (change Exec location to suit):[Desktop Entry] Version=1.0 Name=Script Type=Application Exec=/ASOLUTE/PATH/TO/HOME/bin/fixctrl.sh Terminal=false StartupNotify=false Hidden=falseand finally, create
/ASOLUTE/PATH/TO/HOME/bin/fixctrl.sh with:setxkbmap -option 'ctrl:nocaps'…yes, there are probably better, simpler ways to do all this…
No comments:
Post a Comment