custom-hypr - modifier form
This commit is contained in:
17
.config/hypr/scripts/focusStateToRight.sh
Normal file
17
.config/hypr/scripts/focusStateToRight.sh
Normal 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
|
||||
Reference in New Issue
Block a user