A way to minimzie Steam to tray instead of killing (#101)

Very useful tip indeed, yes
This commit is contained in:
Name 2023-01-14 20:29:38 +01:00 committed by GitHub
parent b2b81195dc
commit ad62c1534f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -32,6 +32,19 @@ bind=MOD,KEY,submap,reset
submap=reset
```
# Minimize Steam instead of killing
Steam will exit entirely when it's last window is closed using the `killactive` dispatcher.
To minimize Steam to tray, use the following script to close applications:
```sh
if [[ $(hyprctl activewindow -j | jq -r ".class") == "Steam" ]]; then
xdotool windowunmap $(xdotool getactivewindow)
else
hyprctl dispatch killactive ""
fi
```
# Window Dancing
Some XWayland games like Rhythm Doctor and Friday Night Funkin' mods like to move