summaryrefslogtreecommitdiff
path: root/spterm
diff options
context:
space:
mode:
Diffstat (limited to 'spterm')
-rwxr-xr-xspterm6
1 files changed, 5 insertions, 1 deletions
diff --git a/spterm b/spterm
index c3a2579..4c17f30 100755
--- a/spterm
+++ b/spterm
@@ -3,5 +3,9 @@
COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)"
if [ "${COUNT:-0}" -lt "3" ]; then
- exec foot -a "$(basename $0)" -w "960x540"
+ hyprctl dispatch exec "[workspace special:spterm;float;noanim] foot -a \"$(basename $0)\" -w '960x540'"
+ hyprctl dispatch togglespecialworkspace spterm
+ sleep 0.03
fi
+
+hyprctl dispatch togglespecialworkspace spterm