From ad62c1534f02c89f86d9de64b491d705198c7c6e Mon Sep 17 00:00:00 2001 From: Name Date: Sat, 14 Jan 2023 20:29:38 +0100 Subject: [PATCH] A way to minimzie Steam to tray instead of killing (#101) Very useful tip indeed, yes --- pages/Configuring/Uncommon-tips-&-tricks.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pages/Configuring/Uncommon-tips-&-tricks.md b/pages/Configuring/Uncommon-tips-&-tricks.md index a0497c1..f1824ec 100644 --- a/pages/Configuring/Uncommon-tips-&-tricks.md +++ b/pages/Configuring/Uncommon-tips-&-tricks.md @@ -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