#!/usr/bin/env bash unset WMII_DIR if [[ -z $_PATH ]]; then export _PATH="$PATH" export PATH="$WMII_CONFPATH:$PATH" fi . include.sh wmiir xwrite /event WmiircQuit # close any existing wmiirc's Event WmiircStart systemd-notify --ready || true trap "Event Quit" EXIT while read -r event; do Event $event <&- done < <(wmiir read /event 2>/dev/null)