From 05c3dd4f1b0440d804f6cf2d2c208e2de9c0ab16 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Sun, 25 Jan 2026 14:30:02 -0800 Subject: [PATCH] New backup 2026-01-25 14:30:02 --- de/home/.config/sway/config.d/keys.d/launch | 2 +- de/home/.config/sway/scripts/exec-float | 8 +++----- de/home/.sapphrc/de | 1 - 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/de/home/.config/sway/config.d/keys.d/launch b/de/home/.config/sway/config.d/keys.d/launch index cfba331..0a200b8 100644 --- a/de/home/.config/sway/config.d/keys.d/launch +++ b/de/home/.config/sway/config.d/keys.d/launch @@ -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 diff --git a/de/home/.config/sway/scripts/exec-float b/de/home/.config/sway/scripts/exec-float index 6cc4829..99c30c4 100755 --- a/de/home/.config/sway/scripts/exec-float +++ b/de/home/.config/sway/scripts/exec-float @@ -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 '' diff --git a/de/home/.sapphrc/de b/de/home/.sapphrc/de index 2c7c154..98068a2 100755 --- a/de/home/.sapphrc/de +++ b/de/home/.sapphrc/de @@ -33,4 +33,3 @@ ala() { swaymsg exec "alacritty --working-directory """${ALACRITTY_OPEN_DIR}"""" } -bash -c 'sleep 2;killall exec-float' &