First shell script

This commit is contained in:
Tomas Rivera
2026-02-26 15:08:56 +01:00
parent a92792195a
commit 8c45417cac
4 changed files with 39 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
{ writeShellApplication, hyprland, jq, ... }:
writeShellApplication {
name = "custom-dontkillsteam";
runtimeInputs = [
hyprland
jq
];
text = ''
if [[ $(hyprctl activewindow -j | jq -r ".class") == "Steam" ]]; then
hyprctl dispatch minimize
else
hyprctl dispatch killactive ""
fi
'';
}