mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-10-10 17:02:43 +02:00
First shell script
This commit is contained in:
1 parent
a92792195a
commit
8c45417cac
4 files changed
+39
-4
No files matched your search
@@ -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