summaryrefslogtreecommitdiff
path: root/sptodo
blob: cf82a0ecd47fac67ace5829e5f04de0188724f43 (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:sptodo;float;noanim] alacritty --class \"$(basename $0)\" -o \"window.position: {\'960,540\'}\" -e todo"
  hyprctl dispatch togglespecialworkspace sptodo
  sleep 0.1
fi

hyprctl dispatch togglespecialworkspace sptodo