move satty window
This commit is contained in:
@@ -37,7 +37,13 @@ if command -v satty >/dev/null 2>&1; then
|
||||
[ -n "$addr" ] && break
|
||||
sleep 0.1
|
||||
done
|
||||
[ -n "$addr" ] && hyprctl dispatch movewindowpixel "exact $x,$y,address:$addr" >/dev/null 2>&1
|
||||
if [ -n "$addr" ]; then
|
||||
# Lua config (Hyprland 0.55+) dispatches through hl.dsp.*, so try
|
||||
# hyprctl eval first, then the raw lua dispatch, then classic syntax.
|
||||
hyprctl eval "hl.dispatch(hl.dsp.window.move({ x = $x, y = $y, window = 'address:$addr' }))" >/dev/null 2>&1 ||
|
||||
hyprctl dispatch "hl.dsp.window.move({ x = $x, y = $y, window = 'address:$addr' })" >/dev/null 2>&1 ||
|
||||
hyprctl dispatch movewindowpixel "exact $x $y,address:$addr" >/dev/null 2>&1
|
||||
fi
|
||||
wait "$pid"
|
||||
wl-copy -t image/png < "$dir/$file"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user