.dotfiles/scripts/checkschildi.sh
2023-12-11 02:57:34 +01:00

10 lines
261 B
Bash
Executable file

#!/bin/bash
STR=$(swaymsg -t get_tree | grep SchildiChat)
if [ "$STR" == "" ]; then
exec schildichat-desktop
#exec swaymsg '[app_id=SchildiChat]' move container to scratchpad; scratchpad show
else
exec swaymsg '[app_id=SchildiChat]' kill
fi
exit 0