aboutsummaryrefslogtreecommitdiff
path: root/system/etc
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-05-16 10:58:56 +0200
committerKarel Kočí <cynerd@email.cz>2017-05-16 10:58:56 +0200
commit94ccf7c1a0f2e3d5a86ffdd2fac5d1f58662835a (patch)
tree36ae93149962ff9720b7bf503028310c468d97f1 /system/etc
parentea2275c523006efb97b550c1dcc11123dd9b9847 (diff)
downloadmyconfigs-94ccf7c1a0f2e3d5a86ffdd2fac5d1f58662835a.tar.gz
myconfigs-94ccf7c1a0f2e3d5a86ffdd2fac5d1f58662835a.tar.bz2
myconfigs-94ccf7c1a0f2e3d5a86ffdd2fac5d1f58662835a.zip
Add shutdown service to kill i3
Diffstat (limited to 'system/etc')
-rwxr-xr-xsystem/etc/init.d/killi313
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
+}