#!/bin/sh COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)" echo "$COUNT" if [ "${COUNT:-0}" -lt "3" ]; then hyprctl dispatch exec "[workspace special:spblue;float;noanim] alacritty --class \"$(basename $0)\" -o \"window.position: {\'960,540\'}\" -e bluetoothctl" hyprctl dispatch togglespecialworkspace spblue sleep 0.2 fi hyprctl dispatch togglespecialworkspace spblue