summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJake Koroman <jake@jakekoroman.com>2025-10-03 13:30:35 -0400
committerJake Koroman <jake@jakekoroman.com>2025-10-03 13:30:35 -0400
commite44c0732c8864fffe1acdd7587ed24d5bebea041 (patch)
treea5c1e67ec05ef0126303d9672c6b98b5d023813b /scripts
parente7cf5775afcd25b7a22204d1295e400dd71e8b88 (diff)
add scripts/swallow.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/swallow7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/swallow b/scripts/swallow
new file mode 100755
index 0000000..4623862
--- /dev/null
+++ b/scripts/swallow
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+activewindow=$(xdotool getactivewindow)
+
+xdotool windowunmap $activewindow
+"$@"
+xdotool windowmap $activewindow