summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSimon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>2015-03-25 17:03:02 +0100
committerEric Koegel <eric.koegel@gmail.com>2015-03-26 12:18:04 +0300
commite940818853582290af21bf38d73ee26143d500ad (patch)
treee1d1d392228df4e954a8a4933f451e09b4fe5ea4 /scripts
parenta65604d6f1b665dd7b8424f62877303b8bf3db06 (diff)
downloadxfce4-session-e940818853582290af21bf38d73ee26143d500ad.tar.gz
Make screenlockers configurable through xfconf
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/xflock44
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/xflock4 b/scripts/xflock4
index ec4d05d4..7d857d37 100644
--- a/scripts/xflock4
+++ b/scripts/xflock4
@@ -24,8 +24,12 @@
PATH=/bin:/usr/bin
export PATH
+# First test for the command set in the session's xfconf channel
+LOCK_CMD=$(xfconf-query -c xfce4-session -p /general/LockCommand)
+
# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
for lock_cmd in \
+ "$LOCK_CMD" \
"xscreensaver-command -lock" \
"gnome-screensaver-command --lock"
do