diff options
author | Karel Kočí <cynerd@email.cz> | 2017-05-16 10:58:56 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-05-16 10:58:56 +0200 |
commit | 94ccf7c1a0f2e3d5a86ffdd2fac5d1f58662835a (patch) | |
tree | 36ae93149962ff9720b7bf503028310c468d97f1 | |
parent | ea2275c523006efb97b550c1dcc11123dd9b9847 (diff) | |
download | myconfigs-94ccf7c1a0f2e3d5a86ffdd2fac5d1f58662835a.tar.gz myconfigs-94ccf7c1a0f2e3d5a86ffdd2fac5d1f58662835a.tar.bz2 myconfigs-94ccf7c1a0f2e3d5a86ffdd2fac5d1f58662835a.zip |
Add shutdown service to kill i3
-rwxr-xr-x | system/etc/init.d/killi3 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/system/etc/init.d/killi3 b/system/etc/init.d/killi3 new file mode 100755 index 0000000..1fa83aa --- /dev/null +++ b/system/etc/init.d/killi3 @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + before killprocs +} + +start() { + for socket in `find /run/user/*/i3 -name ipc-socket*`; do + i3-msg -s $socket exit + done +} |