fix: restore terminal-backed Walker actions
This commit is contained in:
1 parent
b03fe601d9
commit
c2f48df98f
3 files changed
+43
-12
No files matched your search
@@ -13,7 +13,7 @@ let
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/kitty --add-flags "-1"
|
||||
rm $out/share/applications/kitty.desktop
|
||||
sed 's/Exec=kitty/Exec=kitty -1/g' ${pkgs.kitty}/share/applications/kitty.desktop > $out/share/applications/kitty.desktop
|
||||
sed 's/^Exec=kitty/Exec=kitty -1/' ${pkgs.kitty}/share/applications/kitty.desktop > $out/share/applications/kitty.desktop
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
@@ -53,11 +53,10 @@ in
|
||||
text = ''
|
||||
project_path="''${1:-}"
|
||||
if [[ -z "$project_path" ]]; then
|
||||
IFS= read -r project_path
|
||||
IFS= read -r project_path || [[ -n "$project_path" ]]
|
||||
fi
|
||||
|
||||
cd -- "$project_path"
|
||||
exec ${lib.getExe config.programs.kitty.package} --detach --directory "$PWD" \
|
||||
exec ${lib.getExe config.xdg.terminal-exec.package} --dir="$project_path" \
|
||||
${lib.getExe pkgs.zsh} -lic 'nvim; exec zsh -l'
|
||||
'';
|
||||
};
|
||||
@@ -117,6 +116,10 @@ in
|
||||
end
|
||||
'';
|
||||
|
||||
systemd.user.services.elephant.Unit.X-Restart-Triggers = [
|
||||
config.xdg.configFile."elephant/menus/projects.lua".source
|
||||
];
|
||||
|
||||
programs.walker = {
|
||||
enable = true;
|
||||
runAsService = true;
|
||||
|
||||
Reference in new issue
Block a user