move satty window

This commit is contained in:
Your Name
2026-08-14 12:56:07 +00:00
parent f3ae3073ee
commit 0db513c848
3 changed files with 21 additions and 3 deletions
+7 -1
View File
@@ -36,7 +36,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
+7 -1
View File
@@ -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
+7 -1
View File
@@ -56,7 +56,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