aboutsummaryrefslogtreecommitdiff
path: root/system/etc/pm/sleep.d/10lock
blob: da7c018fac4f9d8518d0a8336515c3a6f37d198a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#
# 10sleep: lock i3 season before suspend

case "$1" in
	hibernate|suspend)
		for socket in `find /run/user/*/i3 -name ipc-socket*`; do
			i3-msg -s $socket "exec i3lock -d -c 000000"
		done
	;;
	*) exit $NA
	;;
esac