aboutsummaryrefslogtreecommitdiff
path: root/gui/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'gui/pkgs')
-rw-r--r--gui/pkgs/tasker.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/gui/pkgs/tasker.nix b/gui/pkgs/tasker.nix
index 2382be2..e967382 100644
--- a/gui/pkgs/tasker.nix
+++ b/gui/pkgs/tasker.nix
@@ -5,10 +5,13 @@ pkgs.lib.mapAttrsToList (name: value: let
name = "tasker_cmd_" + name;
executable = true;
destination = "/bin/tasker_cmd_" + name;
- text = ''
+ text = if value.terminal then ''
+ #!/bin/sh
+ exec ${pkgs.kitty}/bin/kitty -d ${value.directory} ${value.command}
+ '' else ''
#!/bin/sh
- pushd ${toString value.directory}
- exec ${toString value.command}
+ pushd ${value.directory}
+ exec ${value.command}
popd
'';
};
@@ -19,8 +22,8 @@ pkgs.lib.mapAttrsToList (name: value: let
text = ''
[Desktop Entry]
Type=Application
- Name=${toString value.description}
- Exec=${command}/bin/tasker_cmd_${toString name}
+ Name=${value.description}
+ Exec=${command}/bin/tasker_cmd_${name}
Terminal=false
'';
};