#!/bin/sh COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)" if [ "${COUNT:-0}" -lt "3" ]; then hyprctl dispatch exec "[workspace special:spprof;float;noanim] foot -a \"$(basename $0)\" -w '960x540' profanity" hyprctl dispatch togglespecialworkspace spprof sleep 0.1 fi hyprctl dispatch togglespecialworkspace spprof