diff options
author | Karel Kočí <karel.koci@nic.cz> | 2018-08-09 12:56:26 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2018-08-09 12:58:32 +0200 |
commit | 41026346fd2ece85c2d313dc5c4daccc5033bf33 (patch) | |
tree | 7682093618d8a1101bbc5be12365be5db2a921ab /sys-power/pm-i3lock/file/10lock | |
parent | 0511b7a0bbbd34ef7e52eb5b377976f64a3a12d7 (diff) | |
download | gentoo-personal-overlay-41026346fd2ece85c2d313dc5c4daccc5033bf33.tar.gz gentoo-personal-overlay-41026346fd2ece85c2d313dc5c4daccc5033bf33.tar.bz2 gentoo-personal-overlay-41026346fd2ece85c2d313dc5c4daccc5033bf33.zip |
Add sys-power/pm-i3lock package
Diffstat (limited to 'sys-power/pm-i3lock/file/10lock')
-rw-r--r-- | sys-power/pm-i3lock/file/10lock | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-power/pm-i3lock/file/10lock b/sys-power/pm-i3lock/file/10lock new file mode 100644 index 0000000..109dbfe --- /dev/null +++ b/sys-power/pm-i3lock/file/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 /tmp/i3-* -name ipc-socket\* 2>/dev/null); do + i3-msg -s $socket "exec i3lock-lnxpcs" + done + ;; + *) exit $NA + ;; +esac |