mirror of
https://github.com/huyjaky/AstroVim_Config.git
synced 2026-02-04 11:57:40 +07:00
19 lines
384 B
Bash
19 lines
384 B
Bash
|
|
|
|
#!/bin/bash
|
|
|
|
# Lấy thông tin của cửa sổ hiện tại chỉ một lần
|
|
window_info=$(hyprctl activewindow)
|
|
window_state=$(echo "$window_info" | grep 'fullscreen:' | awk '{print $2}')
|
|
|
|
|
|
# NOTE: Di chuyển cửa sổ nếu vị trí X vượt qua ngưỡng
|
|
if [ $window_state -eq 1 ]; then
|
|
hyprctl dispatch focusmonitor 1
|
|
exit 0
|
|
fi
|
|
|
|
hyprctl dispatch movefocus r
|
|
|
|
exit 0
|