bazzite/system_files/deck/kinoite/usr/bin/gamescope-wayland-teardown-workaround
Kyle Gospodnetich 4c8034f5a6 chore: Standardize all bash scripts on #!/usr/bin/bash
chore: Standardize all python scripts on #!/usr/bin/python3
chore: Update path for ds-inhibit patch
chore(readme): Remove unused package
2023-12-23 00:02:42 -08:00

13 lines
239 B
Bash
Executable File

#!/usr/bin/bash
set -eu
TARGETS=('/usr/bin/bash /usr/bin/gamescope-session'
'/usr/bin/kwin_x11')
for target in "${TARGETS[@]}"; do
for processtree in $(pgrep -xf "$target" || true); do
kill -- "-$processtree"
done
done