From c94ce60795d70550d5655a56064d5a7a5df8d7e1 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 1 Dec 2024 23:19:47 +0100 Subject: [PATCH] ghostty: use hardcoded session names in tmux --- home/common/ghostty.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/common/ghostty.nix b/home/common/ghostty.nix index c1fbc4b..977eedc 100644 --- a/home/common/ghostty.nix +++ b/home/common/ghostty.nix @@ -121,7 +121,7 @@ "System" "TerminalEmulator" ]; - exec = ''ghostty --class=com.mitchellh.ghostty-local -e "tmux new-session -A -s main"''; + exec = ''ghostty --class=com.mitchellh.ghostty-local -e "tmux new-session -A -D -s main -t main"''; genericName = "Ghostty (local)"; icon = "com.mitchellh.ghostty"; name = "Ghostty (local)"; @@ -138,7 +138,7 @@ "System" "TerminalEmulator" ]; - exec = ''ghostty --class=com.mitchellh.ghostty-local-secondary -e "tmux new-session -A -s secondary -t main"''; + exec = ''ghostty --class=com.mitchellh.ghostty-local-secondary -e "tmux new-session -A -D -s secondary -t main"''; genericName = "Ghostty (local) Secondary"; icon = "com.mitchellh.ghostty"; name = "Ghostty (local) Secondary"; @@ -155,7 +155,7 @@ "System" "TerminalEmulator" ]; - exec = ''ghostty --class=com.mitchellh.ghostty-nemo -e "ssh -t nemo tmux new-session -A -s main"''; + exec = ''ghostty --class=com.mitchellh.ghostty-nemo -e "ssh -t nemo tmux new-session -A -D -s main -t main"''; genericName = "Ghostty (nemo)"; icon = "com.mitchellh.ghostty"; name = "Ghostty (nemo)";