dotfiles/de/home/.config/sway/scripts/exec-float
2025-12-31 10:15:01 -08:00

8 lines
129 B
Bash
Executable file

#!/bin/sh
eval "$1 &"
pid=$!
echo $pid; shift
swaymsg "[pid=$pid]" "$@"
while [ "$?" = "2" ];do
swaymsg "[pid=$pid]" "$@"
done