summaryrefslogtreecommitdiff
path: root/sphtop
diff options
context:
space:
mode:
Diffstat (limited to 'sphtop')
-rwxr-xr-xsphtop6
1 files changed, 5 insertions, 1 deletions
diff --git a/sphtop b/sphtop
index 7b37751..3d77a3f 100755
--- a/sphtop
+++ b/sphtop
@@ -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" htop
+ hyprctl dispatch exec "[workspace special:sphtop;float;noanim] foot -a \"$(basename $0)\" -w '960x540' htop"
+ hyprctl dispatch togglespecialworkspace sphtop
+ sleep 0.03
fi
+
+hyprctl dispatch togglespecialworkspace sphtop