diff --git a/home/programs/xdg.nix b/home/programs/xdg.nix index 39b315ae..02a490e0 100644 --- a/home/programs/xdg.nix +++ b/home/programs/xdg.nix @@ -1,4 +1,9 @@ -{config, ...}: let +{ + config, + pkgs, + default, + ... +}: let browser = ["firefox"]; imageViewer = ["org.gnome.Loupe"]; videoPlayer = ["io.github.celluloid_player.Celluloid"]; @@ -60,4 +65,11 @@ in { }; }; }; + + # used by `gio open` and xdp-gtk + home.packages = [ + (pkgs.writeShellScriptBin "xdg-terminal-exec" '' + ${default.terminal.name} ${default.terminal.exec} "$@" + '') + ]; } diff --git a/lib/theme/default.nix b/lib/theme/default.nix index bcfe839b..b79898cb 100644 --- a/lib/theme/default.nix +++ b/lib/theme/default.nix @@ -5,6 +5,7 @@ lib: { terminal = { font = "JetBrainsMono Nerd Font"; name = "wezterm"; + exec = "start"; # command used to execute programs opacity = 0.9; size = 10; };