move satty window
This commit is contained in:
@@ -36,7 +36,13 @@ if command -v satty >/dev/null 2>&1; then
|
|||||||
[ -n "$addr" ] && break
|
[ -n "$addr" ] && break
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
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"
|
wait "$pid"
|
||||||
wl-copy -t image/png < "$dir/$file"
|
wl-copy -t image/png < "$dir/$file"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -37,7 +37,13 @@ if command -v satty >/dev/null 2>&1; then
|
|||||||
[ -n "$addr" ] && break
|
[ -n "$addr" ] && break
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
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"
|
wait "$pid"
|
||||||
wl-copy -t image/png < "$dir/$file"
|
wl-copy -t image/png < "$dir/$file"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -56,7 +56,13 @@ if command -v satty >/dev/null 2>&1; then
|
|||||||
[ -n "$addr" ] && break
|
[ -n "$addr" ] && break
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
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"
|
wait "$pid"
|
||||||
wl-copy -t image/png < "$dir/$file"
|
wl-copy -t image/png < "$dir/$file"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user