dotfiles/.config/sway/scratchpads.sh
2024-10-15 14:57:02 -04:00

5 lines
175 B
Bash
Executable file

#!/bin/sh
( swaymsg -t get_tree | /bin/grep '"app_id": "'"$1"'"' ) || ( ( "$TERMINAL" --class="$1" -e sh -c "$2" & ) && sleep 0.2 )
swaymsg "[app_id=\"$1\"]" scratchpad show