New backup 2025-12-31 11:15:01

This commit is contained in:
Penelope Gwen 2025-12-31 11:15:01 -08:00
parent 3c0833f0fc
commit 35d2b6ff0f

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
eval "$1 &"
pid=$!
echo $pid
@ -13,8 +13,11 @@ else
win_width=$(( active_screen_width * 60 / 100 ))
win_height=$(( win_width * 57 / 100 ))
fi
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"
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
#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'