mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 10:30:44 +02:00
formated whole config with alejandra
This commit is contained in:
@@ -1,18 +1,22 @@
|
||||
{ writeShellApplication, hyprland, jq, ...}:
|
||||
|
||||
{
|
||||
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
|
||||
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
|
||||
|
||||
'';
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user