diff options
Diffstat (limited to 'system')
-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 +} |