mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
First shell script
This commit is contained in:
@@ -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
|
||||
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user