Files
sxmo-utils/scripts/core/sxmo_killwindow.sh
2022-03-15 08:00:00 -04:00

13 lines
302 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2022 Sxmo Contributors
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
case "$SXMO_WM" in
sway) swaymsg kill;;
dwm) xdotool windowkill "$(xdotool getactivewindow)";;
esac