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

10 lines
236 B
Bash
Executable file

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