From 6ba97a85a6e1a117eb64d9f6020a970aef151d2c Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 25 Apr 2023 19:03:26 -0500 Subject: make scratchpads spawn (almost) instantly in view with one command) --- spprof | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'spprof') diff --git a/spprof b/spprof index a564543..030ca16 100755 --- a/spprof +++ b/spprof @@ -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" profanity + hyprctl dispatch exec "[workspace special:spprof;float;noanim] foot -a \"$(basename $0)\" -w '960x540' profanity" + hyprctl dispatch togglespecialworkspace spprof + sleep 0.03 fi + +hyprctl dispatch togglespecialworkspace spprof -- cgit v1.2.3