diff --git a/platforms/home-manager/modules/nmasur/presets/programs/aerc.nix b/platforms/home-manager/modules/nmasur/presets/programs/aerc.nix index 3545068..b1bee50 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/aerc.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/aerc.nix @@ -204,7 +204,7 @@ in xdg.desktopEntries.aerc = lib.mkIf (pkgs.stdenv.isLinux) { name = "aerc"; - exec = "${lib.getExe config.nmasur.presets.services.i3.terminal} aerc %u"; + exec = "${lib.getExe config.nmasur.presets.services.i3.terminal} -e aerc %u"; }; xsession.windowManager.i3.config.keybindings = lib.mkIf pkgs.stdenv.isLinux { "${config.xsession.windowManager.i3.config.modifier}+Shift+e" = @@ -214,7 +214,7 @@ in if terminal == pkgs.wezterm then "start --class com.noah.aerc -- aerc" else - "--class=com.noah.aerc --command=aerc"; + "--class=com.noah.aerc -e=aerc"; in "exec ${ # Don't name the script `aerc` or it will affect grep diff --git a/platforms/home-manager/modules/nmasur/presets/programs/chawan.nix b/platforms/home-manager/modules/nmasur/presets/programs/chawan.nix index 73cbf56..cb409ff 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/chawan.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/chawan.nix @@ -15,11 +15,20 @@ in config = lib.mkIf cfg.enable { + programs.chawan = { + enable = true; + settings = { + external.copy-cmd = if pkgs.stdenv.isLinux then "xclip -selection clipboard -in" else "pbcopy"; + }; + }; + # Set Chawan as the default app for manual pages home.sessionVariables = { - MANPAGER = "${pkgs.chawan}/bin/mancha"; + MANPAGER = "${lib.getExe pkgs.chawan} -T text/x-ansi"; }; + programs.fish.shellAbbrs.man = "mancha"; + }; } diff --git a/platforms/home-manager/modules/nmasur/presets/services/i3.nix b/platforms/home-manager/modules/nmasur/presets/services/i3.nix index dd0cdc1..497e573 100644 --- a/platforms/home-manager/modules/nmasur/presets/services/i3.nix +++ b/platforms/home-manager/modules/nmasur/presets/services/i3.nix @@ -214,9 +214,9 @@ in cfg.commands.lockScreen != null ) "exec ${cfg.commands.lockScreen}"; "${modifier}+Mod1+h" = - ''exec --no-startup-id ${lib.getExe cfg.terminal} --command="${pkgs.home-manager}/bin/home-manager switch --flake ${config.nmasur.presets.programs.dotfiles.path}#''${hostname} || read" ''; + ''exec --no-startup-id ${lib.getExe cfg.terminal} -e="${pkgs.home-manager}/bin/home-manager switch --flake ${config.nmasur.presets.programs.dotfiles.path}#''${hostname} || read" ''; "${modifier}+Mod1+r" = - "exec --no-startup-id ${lib.getExe cfg.terminal} --command='doas nixos-rebuild switch --flake ${config.nmasur.presets.programs.dotfiles.path} || read'"; + "exec --no-startup-id ${lib.getExe cfg.terminal} -e=\'doas nixos-rebuild switch --flake ${config.nmasur.presets.programs.dotfiles.path} || read\'"; # Window options "${modifier}+q" = "kill"; diff --git a/platforms/home-manager/modules/nmasur/profiles/experimental.nix b/platforms/home-manager/modules/nmasur/profiles/experimental.nix index 7a47759..c52d1c2 100644 --- a/platforms/home-manager/modules/nmasur/profiles/experimental.nix +++ b/platforms/home-manager/modules/nmasur/profiles/experimental.nix @@ -29,7 +29,6 @@ in pkgs.charm # Manage account and filesystem pkgs.pop # Send emails from a TUI - pkgs.chawan # Browser TUI pkgs.crush # AI LLM Agent ];