Files
nix/hosts/common/configs/user/gui/hyprland/scripts/monitors.sh
Nikolaos Karaolidis 2888bb8b72 Add treefmt
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2025-02-16 18:53:11 +00:00

11 lines
299 B
Bash

# shellcheck shell=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