From 4b58f34a2094f2bbeb283b5455cba50f81a15ce4 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Wed, 21 Oct 2026 11:51:19 -0400 Subject: [PATCH] wrap ptyxis for multi-instance --- modules/graphical/ptyxis.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/graphical/ptyxis.nix b/modules/graphical/ptyxis.nix index ee149d1..413c1d7 100644 --- a/modules/graphical/ptyxis.nix +++ b/modules/graphical/ptyxis.nix @@ -1,7 +1,16 @@ { pkgs, ... }: { environment.systemPackages = [ - pkgs.ptyxis + # Ptyxis is single-instance, so plain `ptyxis` just focuses the existing window + (pkgs.symlinkJoin { + name = "ptyxis"; + paths = [ pkgs.ptyxis ]; + postBuild = '' + desktop=$out/share/applications/org.gnome.Ptyxis.desktop + cp --remove-destination "$(readlink "$desktop")" "$desktop" + sed -i -e 's/^Exec=ptyxis$/Exec=ptyxis --new-window/' -e '/^DBusActivatable=/d' "$desktop" + ''; + }) ]; programs.nautilus-open-any-terminal = {