summaryrefslogtreecommitdiff
path: root/bin/i3-startup-xtrlock
blob: 2bf6daffe41ab288d9c8f0e4850fd625314b8f86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

. $HOME/.shenv

# screen locking setup

# kill any other lockers that might have snuck in
pkill -u $USER light-locker
pkill -u $USER xscreensaver
pkill -u $USER xautolock
pkill -u $USER xss-lock

# turn over lid switch handling to logind, if needed
if which xfconf-query >/dev/null; then
    xfconf-query -c xfce4-power-manager -n \
                 -p /xfce4-power-manager/logind-handle-lid-switch \
                 -t bool -s true
fi

xss-lock --transfer-sleep-lock \
         -- i3-startup-xtrlock-inner-lock &