summaryrefslogtreecommitdiff
path: root/spprof
blob: 90b246285ed0300c412b10c7556b2a001d1ad21b (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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] alacritty --class \"$(basename $0)\" -o \"window.position: {\'960,540\'}\" -e profanity"
  hyprctl dispatch togglespecialworkspace spprof
  sleep 0.1
fi

hyprctl dispatch togglespecialworkspace spprof