custom-hypr - modifier form
This commit is contained in:
14
.config/hypr/scripts/focusStateToLeft.sh
Normal file
14
.config/hypr/scripts/focusStateToLeft.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
#!/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 0
|
||||
exit 0
|
||||
fi
|
||||
|
||||
hyprctl dispatch movefocus l
|
||||
Reference in New Issue
Block a user