mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
19 lines
388 B
Nix
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
|
|
|
|
'';
|
|
}
|