dotfiles-arch/.config/sway/scripts.d/scratchpads.sh
2023-11-27 13:03:12 -05:00

4 lines
161 B
Bash
Executable file

#!/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