custom-hypr - modifier form

This commit is contained in:
huyjaky
2024-10-22 08:41:42 +07:00
parent 39467b1bbe
commit 3655aef8e9
61 changed files with 4559 additions and 158 deletions

View File

@@ -0,0 +1,17 @@
#!/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