2023-03-07 18:15:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-10-15 18:57:02 +00:00
|
|
|
( swaymsg -t get_tree | /bin/grep '"app_id": "'"$1"'"' ) || ( ( "$TERMINAL" --class="$1" -e sh -c "$2" & ) && sleep 0.2 )
|
2023-03-07 18:15:21 +00:00
|
|
|
swaymsg "[app_id=\"$1\"]" scratchpad show
|