XFCE – Screen lock using LightGDM



export PATH

# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
#for lock_cmd in \
# "xscreensaver-command -lock" \
# "gnome-screensaver-command --lock"
# $lock_cmd >/dev/null 2>&1 && exit

for lock_cmd in \
"dm-tool lock"
$lock_cmd >/dev/null 2>&1 && exit

# else run another access locking utility, if installed
for lock_cmd in \

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.