From 9b0447433e84e47bfb31158d3745d419c869a6a4 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 1 Dec 2024 23:19:47 +0100 Subject: [PATCH] ghostty: add .desktop for secondary tmux session --- home/common/ghostty.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/home/common/ghostty.nix b/home/common/ghostty.nix index 025b156..9cacb32 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 -s0 -nt1"''; + exec = ''ghostty --class=com.mitchellh.ghostty-local -e "tmux new-session -A -s main"''; genericName = "Ghostty (local)"; icon = "com.mitchellh.ghostty"; name = "Ghostty (local)"; @@ -133,6 +133,23 @@ type = "Application"; }; + ghostty-local-secondary = { + categories = [ + "System" + "TerminalEmulator" + ]; + exec = ''ghostty --class=com.mitchellh.ghostty-local-secondary -e "tmux new-session -A -s secondary -t main"''; + genericName = "Ghostty (local) Secondary"; + icon = "com.mitchellh.ghostty"; + name = "Ghostty (local) Secondary"; + settings = { + StartupWMClass = "com.mitchellh.ghostty-local-secondary"; + TryExec = "ghostty"; + }; + terminal = false; + type = "Application"; + }; + ghostty-nemo = { categories = [ "System"