fix: nemo open in terminal
This commit is contained in:
parent
3797b75083
commit
e08222fc8f
3 changed files with 12 additions and 27 deletions
|
|
@ -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
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue