New backup 2025-12-31 11:30:02
This commit is contained in:
parent
35d2b6ff0f
commit
37e1d5c45e
1 changed files with 11 additions and 3 deletions
|
|
@ -17,7 +17,15 @@ swaymsg "[pid=$pid]" "floating enable, resize set ${win_width}px ${win_height}px
|
|||
while [ "$?" = "2" ];do
|
||||
swaymsg "[pid=$pid]" "floating enable, resize set ${win_width}px ${win_height}px, move position center"
|
||||
done
|
||||
swaymsg -t get_tree | jq ".. | select(.type?) | select(.pid==${pid})"
|
||||
sleep 2
|
||||
swaymsg -t get_tree | jq ".. | select(.type?) | select(.pid==${pid})"
|
||||
exit
|
||||
swaymsg -t get_tree | jq ".. | select(.type?) | select((.pid==${pid}) and (.type==\"floating_con\")).id" | grep ''
|
||||
while [ "$?" = "1" ];do
|
||||
swaymsg -t get_tree | jq ".. | select(.type?) | select((.pid==${pid}) and (.type==\"floating_con\")).id" | grep ''
|
||||
done
|
||||
#sleep 0.1
|
||||
#swaymsg "[pid=$pid]" "resize set ${win_width}px ${win_height}px, move position center"
|
||||
echo "floating enable, resize set ${win_width}px ${win_height}px"
|
||||
sleep 0.3;swaymsg -t get_tree | jq -r '.. | select(.type?) | select(.focused).window_rect'
|
||||
swaymsg "[pid=$pid]" "resize set ${win_width}px ${win_height}px, move position center"
|
||||
#echo "floating enable, resize set ${win_width}px ${win_height}px"
|
||||
#sleep 0.3;swaymsg -t get_tree | jq -r '.. | select(.type?) | select(.focused).window_rect'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue