summaryrefslogtreecommitdiff
path: root/spblue
blob: f3fea15822f57829571e980c6da0fc9da1e8ff31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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] foot -a \"$(basename $0)\" -w '960x540' bluetoothctl"
  hyprctl dispatch togglespecialworkspace spblue
  sleep 0.03
fi

hyprctl dispatch togglespecialworkspace spblue