From 4766311654b4130ab6874d8e3d76c3b7cbfec7cf Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Fri, 3 Jan 2025 16:11:27 +0100 Subject: [PATCH] ghostty: add desktop entries for secondary (condensed) terminals --- home/common/ghostty.nix | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/home/common/ghostty.nix b/home/common/ghostty.nix index 3904d69..cf72219 100644 --- a/home/common/ghostty.nix +++ b/home/common/ghostty.nix @@ -104,13 +104,32 @@ ''; xdg.desktopEntries = { + ghostty-secondary = { + categories = [ + "System" + "TerminalEmulator" + ]; + exec = '' + ghostty --class=com.mitchellh.ghostty-secondary --font-style="ExtraCondensed" --font-style-bold="Bold ExtraCondensed" --font-style-italic="ExtraCondensed Oblique" + ''; + genericName = "Ghostty Secondary"; + icon = "com.mitchellh.ghostty"; + name = "Ghostty (nemo)"; + settings = { + StartupWMClass = "com.mitchellh.ghostty-secondary"; + TryExec = "ghostty"; + }; + terminal = false; + type = "Application"; + }; + ghostty-nemo = { categories = [ "System" "TerminalEmulator" ]; exec = '' - ghostty --class=com.mitchellh.ghostty-nemo --command="ssh -t nemo" --initial-command="ssh -t nemo nvim-remote" + ghostty --class=com.mitchellh.ghostty-nemo --command="ssh -t nemo" --initial-command="ssh -t nemo nvim-remote" ''; genericName = "Ghostty (nemo)"; icon = "com.mitchellh.ghostty"; @@ -122,6 +141,25 @@ terminal = false; type = "Application"; }; + + ghostty-nemo-secondary = { + categories = [ + "System" + "TerminalEmulator" + ]; + exec = '' + ghostty --class=com.mitchellh.ghostty-nemo-secondary --font-style="ExtraCondensed" --font-style-bold="Bold ExtraCondensed" --font-style-italic="ExtraCondensed Oblique" --command="ssh -t nemo" --initial-command="ssh -t nemo nvim-remote" + ''; + genericName = "Ghostty Secondary (nemo)"; + icon = "com.mitchellh.ghostty"; + name = "Ghostty (nemo)"; + settings = { + StartupWMClass = "com.mitchellh.ghostty-nemo-secondary"; + TryExec = "ghostty"; + }; + terminal = false; + type = "Application"; + }; }; };