punktdateien/hypr/scripts/close-window.sh

6 lines
258 B
Bash
Executable file

#!/bin/bash
if [ "$(hyprctl activewindow -j | jq -r ".class")" = "Steam" ]; then # check if program is problematic
xdotool getactivewindow windowunmap # workaround, if matching
else
hyprctl dispatch killactive "" # kill window if not problematic
fi