summaryrefslogtreecommitdiff
path: root/spncmp
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-04-25 19:03:26 -0500
committerzachir <zachir@librem.one>2023-04-25 19:03:26 -0500
commit6ba97a85a6e1a117eb64d9f6020a970aef151d2c (patch)
treee073fa3f109d968ee1d1059bfb0ffbe7305b84a2 /spncmp
parentaf3fc076ad07504ba6424c7c3d140156a47cfb59 (diff)
make scratchpads spawn (almost) instantly in view with one command)
Diffstat (limited to 'spncmp')
-rwxr-xr-xspncmp6
1 files changed, 5 insertions, 1 deletions
diff --git a/spncmp b/spncmp
index 9948e6f..8fefd83 100755
--- a/spncmp
+++ b/spncmp
@@ -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" ncmpcpp
+ hyprctl dispatch exec "[workspace special:spncmp;float;noanim] foot -a \"$(basename $0)\" -w '960x540' ncmpcpp"
+ hyprctl dispatch togglespecialworkspace spncmp
+ sleep 0.03
fi
+
+hyprctl dispatch togglespecialworkspace spncmp