fix: nemo open in terminal

This commit is contained in:
DACHXY 2025-01-01 03:29:41 +08:00
parent 3797b75083
commit e08222fc8f
3 changed files with 12 additions and 27 deletions

View file

@ -1,28 +1,5 @@
{ pkgs, inputs, system, ... }:
let
terminalContent = ''
[Nemo Action]
Name=Open in Ghostty
Comment=Open folder in Ghostty
Exec=ghostty -e \"cd %F && exec bash\"
Icon-Name=ghostty
Selection=any
Extensions=dir;
Quote=double
EscapeSpaces=true
Dependencies=ghostty;
'';
nemo-unwrapped = pkgs.nemo.overrideAttrs (oldAttrs: {
postInstall = ''
${oldAttrs.postInstall}
# Open in Terminal Patch
echo "${terminalContent}" > $out/share/nemo/actions/open_in_terminal.nemo_action
'';
});
in
{
environment.systemPackages = (with pkgs; [
# gtk theme
@ -32,6 +9,9 @@ in
# Browser
firefox
# File Manager
nemo
# Utils
bat
btop
@ -103,8 +83,7 @@ in
ffmpegthumbnailer
]) ++ ([
inputs.ghostty.packages.${system}.default
inputs.yazi.packages.x86_64-linux.default # Terminal file manager
nemo-unwrapped
]);
}