dotfiles/local/bin/swallow

9 lines
152 B
Plaintext
Raw Permalink Normal View History

2022-02-06 12:48:48 -05:00
#!/bin/sh
set -e
CMD="$1"
shift 1
WINDOW=$(xdotool getwindowfocus)
xdotool windowunmap "$WINDOW"
$CMD "$@" > /dev/null 2>&1
xdotool windowmap "$WINDOW"