1
Loading...

Linux: How To Setup A Lockscreen To Run On Sleep/Suspend

Vote
18 18 views
1y Jan 27, 2020
G

If you care even remotely about your security you probably will want to probably want to at least setup a lockscreen for your computer, whilst this isn't perfectly safe it'll keep out the general prying eyes, and if you have a lockscreen you may want it to run when your computer goes to sleep or suspend mode and that's what we're doing today. If you care even more about security you will likely also want to disable the ability to kill your xorg server and switch tty so that it's a bit harder to circumvent your lockscreen, I do address this but I also think it's dangerous for reasons besides security but it's your system so feel free to configure it as you wish.

💖 Subscribe and ding the bell for more videos!
👍 Leave a like if you got something out of this video!
✍ Comment some video feedback or what you want to see next time!

==========Resources==========
Slock Arch Wiki:
https://wiki.archlinux.org/index.php/Slock

Linux Lockscreens Arch Wiki:
https://wiki.archlinux.org/index.php/List_of_applications#Screen_lockers

Slock Service:
[Unit]
Description=Lock X session using betterlockscreen for user %i
Before=sleep.target
Before=suspend.target

[Service]
User=%i
Type=simple
Environment=DISPLAY=:0
ExecStartPre=/usr/bin/xset dpms force suspend
ExecStart=/usr/bin/slock
TimeoutSec=infinity

[Install]
WantedBy=sleep.target
WantedBy=suspend.target

Xorg Conf Changes:
Section "ServerFlags"
Option "DontVTSwitch" "True"
Option "DontZap" "True"
EndSection

==========Support The Channel==========
Patreon:
https://www.patreon.com/brodierobertson
Paypal:
https://www.paypal.me/BrodieRobertsonVideo
BTC Wallet Address:
1Aokiv3pFQXUEmh2LbzZQAwxMvq6bpT2UN
ETH Wallet Address:
0x80451867c86bdf08c3888d407c1e3fcb6add61ed
LBC Wallet Address:
bLRN9fm17sCexKfgbYqmMj5xskZF2ogpEh

=========Video Platforms==========
🎥 LBRY:
https://open.lbry.com/@BrodieRobertson#5
📚 LBRY Referral Link:
https://api.lbry.com/user/refer?r=3jiXsRmYEV9vZEtETdEFzibFzWuwLhJc
📺 BitTube:
https://bittube.tv/profile/BrodieRobertson

==========Social Media==========
🎤 Discord:
https://discord.gg/PkMRVn9
🐦 Twitter:
https://twitter.com/BrodieOnYoutube
🧠 Minds:
https://www.minds.com/brodierobertson/
✉️ Telegram:
https://t.me/BrodieRobertson
🌐 Mastodon:
https://mastodon.social/@BrodieOnYoutube

==========My Repos==========
🖥️ GitHub:
https://github.com/BrodieRobertson

==========Credits==========
🎵 Opening music
Full Power by ZAYFALL https://soundcloud.com/zayfallmusic
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/_full-power
Music promoted by Audio Library https://youtu.be/vWuGCATLwxI

🎵 Ending music
Music from https://filmmusic.io
"Basic Implosion" by Kevin MacLeod (https://incompetech.com)
License: CC BY (http://creativecommons.org/licenses/by/4.0/)

About Brodie Robertson

For all general enquiries feel free to contact me through any social media service listed below, If you'd like to longer form something longer form like fan mail or you have a video suggestion, feel free to send me an email.


0 Comments

Markdown is supported.
Life Hacks with Randy Dreammaker – S1 • E4
1 day ago
EEVblog – E1409
4 days ago
Defpom's Mailbag – E857
4 days ago