From 2f8f5e340bdadf5624c4c9ca8c10d42d7c143742 Mon Sep 17 00:00:00 2001 From: randogoth Date: Wed, 4 Feb 2026 22:12:07 +0200 Subject: [PATCH] chore(terminal): switch default terminal to ptyxis --- modules/desktop/desktop-entries.nix | 11 +++++------ modules/desktop/gnome-minimal.nix | 4 ++-- modules/desktop/patches/logo-menu-custom-menu.patch | 2 +- modules/system/packages.nix | 2 +- modules/system/shell.nix | 6 +++--- templates/home-home.nix | 6 +++--- 6 files changed, 15 insertions(+), 16 deletions(-) diff --git a/modules/desktop/desktop-entries.nix b/modules/desktop/desktop-entries.nix index 1db26e5..7da1689 100644 --- a/modules/desktop/desktop-entries.nix +++ b/modules/desktop/desktop-entries.nix @@ -25,24 +25,23 @@ let comment = "Browse files"; }; - ghosttyDesktopOverride = pkgs.makeDesktopItem { - name = "com.mitchellh.ghostty"; + ptyxisDesktopOverride = pkgs.makeDesktopItem { + name = "org.gnome.Ptyxis"; desktopName = "Terminal"; genericName = "Terminal Emulator"; - exec = "ghostty"; - icon = "com.mitchellh.ghostty"; + exec = "ptyxis"; + icon = "org.gnome.Ptyxis"; categories = [ "System" "TerminalEmulator" "Utility" ]; terminal = false; - comment = "Fast GPU-accelerated terminal"; }; in { environment.systemPackages = lib.mkAfter [ (lib.hiPrio thunarDesktopOverride) - (lib.hiPrio ghosttyDesktopOverride) + (lib.hiPrio ptyxisDesktopOverride) ]; } diff --git a/modules/desktop/gnome-minimal.nix b/modules/desktop/gnome-minimal.nix index 5c9e9ea..d1d69eb 100644 --- a/modules/desktop/gnome-minimal.nix +++ b/modules/desktop/gnome-minimal.nix @@ -27,7 +27,7 @@ in disable-user-extensions = false; favorite-apps = [ "thunar.desktop" - "com.mitchellh.ghostty.desktop" + "org.gnome.Ptyxis.desktop" "com.ranfdev.DistroShelf.desktop" "io.github.kolunmi.Bazaar.desktop" ]; @@ -50,7 +50,7 @@ in "org/gnome/shell/extensions/logo-menu" = { menu-button-icon-image = lib.gvariant.mkInt32 51; - menu-button-terminal = "ghostty"; + menu-button-terminal = "ptyxis"; menu-button-system-monitor = "missioncenter"; menu-button-extensions-app = "com.mattjakeman.ExtensionManager.desktop"; hide-softwarecentre = true; diff --git a/modules/desktop/patches/logo-menu-custom-menu.patch b/modules/desktop/patches/logo-menu-custom-menu.patch index 10a4cd5..d9fb4c3 100644 --- a/modules/desktop/patches/logo-menu-custom-menu.patch +++ b/modules/desktop/patches/logo-menu-custom-menu.patch @@ -127,7 +127,7 @@ diff -ru logo-menu-patch-orig/schemas/org.gnome.shell.extensions.logo-menu.gsche - "gnome-terminal" -+ "ghostty" ++ "ptyxis" Menu Button Terminal Change the Menu Button Terminal. diff --git a/modules/system/packages.nix b/modules/system/packages.nix index e738730..da62cd8 100644 --- a/modules/system/packages.nix +++ b/modules/system/packages.nix @@ -10,12 +10,12 @@ pkgs.dnsmasq pkgs.fastfetch pkgs.flatpak - pkgs.ghostty pkgs.git pkgs.home-manager pkgs.just pkgs.libnotify pkgs.micro + pkgs.ptyxis pkgs.p7zip pkgs.podman-compose pkgs.xdg-utils diff --git a/modules/system/shell.nix b/modules/system/shell.nix index 86e7b49..74cbfe8 100644 --- a/modules/system/shell.nix +++ b/modules/system/shell.nix @@ -23,10 +23,10 @@ in pkgs.zoxide ]; - # Use Ghostty as the default terminal emulator. + # Use Ptyxis as the default terminal emulator. environment.sessionVariables = { - TERMINAL = "${pkgs.ghostty}/bin/ghostty"; - DEFAULT_TERMINAL = "${pkgs.ghostty}/bin/ghostty"; + TERMINAL = "${pkgs.ptyxis}/bin/ptyxis"; + DEFAULT_TERMINAL = "${pkgs.ptyxis}/bin/ptyxis"; }; programs.bash = { diff --git a/templates/home-home.nix b/templates/home-home.nix index e59fd49..55b89c4 100644 --- a/templates/home-home.nix +++ b/templates/home-home.nix @@ -78,7 +78,7 @@ thunderbird # full-featured Mozilla e-mail client # geary # default GNOME email client - # ptyxis # container aware GNOME terminal + # ghostty # GPU accelerated terminal emulator # alacritty # GPU accelerated terminal emulator # kitty # GPU accelerated terminal emulator @@ -111,8 +111,8 @@ home-manager switch --flake ~/.config/home-manager#$USER home.sessionVariables = { # you can change the default terminal and editor here - TERMINAL = "${pkgs.ghostty}/bin/ghostty"; - DEFAULT_TERMINAL = "${pkgs.ghostty}/bin/ghostty"; + TERMINAL = "${pkgs.ptyxis}/bin/ptyxis"; + DEFAULT_TERMINAL = "${pkgs.ptyxis}/bin/ptyxis"; EDITOR = "micro"; DBX_CONTAINER_HOME_PREFIX = "$HOME/distrobox"; };