caelestia/hypr/scripts/monitor-hyprlock.fish
2025-06-15 20:58:39 +10:00

10 lines
248 B
Fish
Executable file

#!/bin/fish
set -l src (dirname (status filename))
socat -U - UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read line
switch $line
case 'monitor*'
$src/gen-hyprlock.fish
end
end