First shell script

This commit is contained in:
Tomas Rivera committed 2026-02-26 15:08:56 +01:00
1 parent a92792195a
commit 8c45417cac
4 files changed
+39 -4

No files matched your search

+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
'';
}