blob: 8cf248aab21f463565f78fac3c75b2744d91b3c7 (
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:spterm;float;noanim] alacritty --class \"$(basename $0)\" -o \"window.position: {\'960,540\'}\""
hyprctl dispatch togglespecialworkspace spterm
sleep 0.2
fi
hyprctl dispatch togglespecialworkspace spterm
|