9 lines
274 B
Bash
9 lines
274 B
Bash
handle() {
|
|
# shellcheck disable=SC2086
|
|
case $1 in
|
|
monitoradded*|monitorremoved*) systemctl --user restart $SERVICES ;;
|
|
esac
|
|
}
|
|
|
|
socat -U - "UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock" | while read -r line; do handle "$line"; done
|