summaryrefslogtreecommitdiff
path: root/sys-power/pm-i3lock/files/10lock
blob: 109dbfe22b4be276fd9de26475d27d0a6725fd64 (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 /tmp/i3-* -name ipc-socket\* 2>/dev/null); do
			i3-msg -s $socket "exec i3lock-lnxpcs"
		done
	;;
	*) exit $NA
	;;
esac