From 81836945a63f726033fb6550755e2c9dbf1a1f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 3 Apr 2017 20:42:16 +0200 Subject: Add system_install --- system/etc/pm/sleep.d/10lock | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 system/etc/pm/sleep.d/10lock (limited to 'system/etc/pm') diff --git a/system/etc/pm/sleep.d/10lock b/system/etc/pm/sleep.d/10lock new file mode 100755 index 0000000..da7c018 --- /dev/null +++ b/system/etc/pm/sleep.d/10lock @@ -0,0 +1,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 -- cgit v1.2.3