New backup 2025-12-31 11:15:01
This commit is contained in:
parent
3c0833f0fc
commit
35d2b6ff0f
1 changed files with 7 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
eval "$1 &"
|
eval "$1 &"
|
||||||
pid=$!
|
pid=$!
|
||||||
echo $pid
|
echo $pid
|
||||||
|
|
@ -13,8 +13,11 @@ else
|
||||||
win_width=$(( active_screen_width * 60 / 100 ))
|
win_width=$(( active_screen_width * 60 / 100 ))
|
||||||
win_height=$(( win_width * 57 / 100 ))
|
win_height=$(( win_width * 57 / 100 ))
|
||||||
fi
|
fi
|
||||||
|
swaymsg "[pid=$pid]" "floating enable, resize set ${win_width}px ${win_height}px, move position center"
|
||||||
swaymsg "[pid=$pid]" "floating enable, resize set ${win_width}px ${win_height}px"
|
|
||||||
while [ "$?" = "2" ];do
|
while [ "$?" = "2" ];do
|
||||||
swaymsg "[pid=$pid]" "floating enable, resize set ${win_width}px ${win_height}px"
|
swaymsg "[pid=$pid]" "floating enable, resize set ${win_width}px ${win_height}px, move position center"
|
||||||
done
|
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'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue