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

10 lines
229 B
Bash
Executable file

#!/bin/bash
STR=$(swaymsg -t get_tree | grep spotify)
if [ "$STR" == "" ]; then
exec spotify & sleep 2
exec swaymsg '[class="Spotify"]' scratchpad show
else
exec swaymsg '[class="Spotify"]' scratchpad show
fi
exit 0