sxmo-utils/scripts/core/sxmo_killwindow.sh
2021-03-22 19:49:48 +01:00

11 lines
267 B
Bash
Executable file

#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
if [ "$1" = "close" ]; then
xdotool windowclose "$(xdotool getactivewindow)"
else
xdotool windowkill "$(xdotool getactivewindow)"
fi