punktdateien/gui/hypr/scripts.d/kill-active.sh

7 lines
158 B
Bash
Raw Normal View History

2024-06-02 17:16:50 +02:00
#!/bin/bash
if [ "$(hyprctl activewindow -j | jq -r ".class")" = "Steam" ]; then
2024-06-03 20:10:39 +02:00
xdotool getactivewindow windowunmap
2024-06-02 17:16:50 +02:00
else
2024-06-03 20:10:39 +02:00
hyprctl dispatch killactive ""
2024-06-02 17:16:50 +02:00
fi