Files
nixos/modules/scripts/dontkillsteam.nix
T

19 lines
388 B
Nix

{ writeShellApplication, hyprland, jq, ... }:
writeShellApplication {
name = "custom-dontkillsteam";
runtimeInputs = [
hyprland
jq
];
text = ''
class=$(hyprctl activewindow -j | jq -r ".class")
if [[ "$class" == "Steam" || "$class" == "custom-pomodoro" ]]; then
hyprctl dispatch movetoworkspacesilent special
else
hyprctl dispatch killactive ""
fi
'';
}