fix: nemo open in terminal
This commit is contained in:
parent
3797b75083
commit
e08222fc8f
3 changed files with 12 additions and 27 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, lib, inputs, system, ... }:
|
{ pkgs, lib, inputs, system, terminal }:
|
||||||
let
|
let
|
||||||
swayncScript = pkgs.pkgs.writeShellScriptBin "swaync-start" ''
|
swayncScript = pkgs.pkgs.writeShellScriptBin "swaync-start" ''
|
||||||
XDG_CONFIG_HOME="$HOME/.dummy" # Prevent swaync use default gtk theme
|
XDG_CONFIG_HOME="$HOME/.dummy" # Prevent swaync use default gtk theme
|
||||||
|
|
@ -6,6 +6,10 @@ let
|
||||||
'';
|
'';
|
||||||
|
|
||||||
startupScript = pkgs.pkgs.writeShellScriptBin "start" ''
|
startupScript = pkgs.pkgs.writeShellScriptBin "start" ''
|
||||||
|
# Fix nemo open in terminal
|
||||||
|
dconf write /org/cinnamon/desktop/applications/terminal/exec "''\'${terminal}''\'" &
|
||||||
|
dconf write /org/cinnamon/desktop/applications/terminal/exec-arg "''\'''\'" &
|
||||||
|
|
||||||
uwsm app -- ${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1 &
|
uwsm app -- ${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1 &
|
||||||
uwsm app -- ${swayncScript}/bin/swaync-start &
|
uwsm app -- ${swayncScript}/bin/swaync-start &
|
||||||
dbus-update-activation-environment --systemd --all &
|
dbus-update-activation-environment --systemd --all &
|
||||||
|
|
@ -20,3 +24,4 @@ let
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
''${startupScript}/bin/start''
|
''${startupScript}/bin/start''
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
{ pkgs, lib, inputs, system, cursor-size, ... }:
|
{ pkgs, lib, inputs, system, cursor-size, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
startScript = import ./hypr/exec.nix { inherit pkgs lib inputs system; };
|
terminal = "ghostty";
|
||||||
|
startScript = import ./hypr/exec.nix { inherit pkgs lib inputs system terminal; };
|
||||||
mainMod = "SUPER";
|
mainMod = "SUPER";
|
||||||
window = import ./hypr/window.nix;
|
window = import ./hypr/window.nix;
|
||||||
windowrule = import ./hypr/windowrule.nix;
|
windowrule = import ./hypr/windowrule.nix;
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,5 @@
|
||||||
{ pkgs, inputs, system, ... }:
|
{ 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; [
|
environment.systemPackages = (with pkgs; [
|
||||||
# gtk theme
|
# gtk theme
|
||||||
|
|
@ -32,6 +9,9 @@ in
|
||||||
# Browser
|
# Browser
|
||||||
firefox
|
firefox
|
||||||
|
|
||||||
|
# File Manager
|
||||||
|
nemo
|
||||||
|
|
||||||
# Utils
|
# Utils
|
||||||
bat
|
bat
|
||||||
btop
|
btop
|
||||||
|
|
@ -103,8 +83,7 @@ in
|
||||||
ffmpegthumbnailer
|
ffmpegthumbnailer
|
||||||
]) ++ ([
|
]) ++ ([
|
||||||
inputs.ghostty.packages.${system}.default
|
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