dotfiles-guix/home-config/sway/scripts.d/scratchpads.sh

5 lines
161 B
Bash
Raw Normal View History

2023-09-05 03:21:01 +00:00
#!/bin/sh
( swaymsg -t get_tree | /bin/grep '"app_id": "'$1'"' ) || ( ( $TERMINAL --class=$1 -e $2 & ) && sleep 0.2 )
swaymsg "[app_id=\"$1\"]" scratchpad show