punktdateien/hypr/scripts/winclose.sh

9 lines
288 B
Bash
Raw Normal View History

2023-12-08 17:33:11 +01:00
#!/bin/bash
# jstm's window close script
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