New backup 2026-01-25 14:30:02

This commit is contained in:
Penelope Gwen 2026-01-25 14:30:02 -08:00
parent f86329c4e0
commit 05c3dd4f1b
3 changed files with 4 additions and 7 deletions

View file

@ -4,7 +4,7 @@ bindsym {
#terminal
$mod+Return exec $term
#floating terminal
$mod+Shift+Return exec $HOME/.config/sway/scripts/exec-float $term
$mod+Shift+Return exec timeout 3s $HOME/.config/sway/scripts/exec-float $term
#launcher
$mod+d exec $menu
#launcher reload

View file

@ -14,11 +14,9 @@ else
win_height=$(( win_width * 57 / 100 ))
fi
swaymsg "[pid=$pid]" "floating enable, resize set ${win_width}px ${win_height}px"
timeout 3s bash -c "while [ \"$?\" = \"2\" ];do \
swaymsg \"[pid=$pid]\" \"floating enable, resize set ${win_width}px ${win_height}px\" \
done"
echo test
exit 0
while [ "$?" = "2" ];do
swaymsg "[pid=$pid]" "floating enable, resize set ${win_width}px ${win_height}px"
done
swaymsg -t get_tree | jq ".. | select(.type?) | select((.pid==${pid}) and (.rect.height==${win_height} | not)).id" | grep ''
while [ "$?" = "1" ];do
swaymsg -t get_tree | jq ".. | select(.type?) | select((.pid==${pid}) and (.rect.height==${win_height} | not)).id" | grep ''

View file

@ -33,4 +33,3 @@ ala() {
swaymsg exec "alacritty --working-directory """${ALACRITTY_OPEN_DIR}""""
}
bash -c 'sleep 2;killall exec-float' &