aboutsummaryrefslogblamecommitdiff
path: root/.config/eww/scripts/monitor.sh
blob: a21105487589ef54ab9a990ae532ad35ebb37afc (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                                                          
#!/bin/sh

function handle {
  if [[ ${1:0:12} == "monitoradded" ]]; then
    ~/.config/eww/scripts/start.sh
  elif [[ ${1:0:14} == "monitorremoved" ]]; then
    ~/.config/eww/scripts/start.sh
  fi
}

socat - UNIX-CONNECT:/tmp/hypr/$(echo $HYPRLAND_INSTANCE_SIGNATURE)/.socket2.sock | while read line; do handle $line; done