summaryrefslogtreecommitdiff
path: root/x11-misc/myi3lock/files/myi3lock
blob: f466def0fe94321563342e53e1ee60e17f72eb02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
BACKS="/usr/share/backgrounds"

# Set pidgin to offline
purple-remote 'setstatus?status=offline'
# Run lock in background and when unlocked switch pidgin back to online
nohup /bin/sh -ec "
i3lock -n -c 000000 -i $(shuf -n1 -e "$BACKS"/*)
purple-remote 'setstatus?status=available'
" >/dev/null 2>&1 &
# Power off screen
xset dpms force off