From ee7e6f767de8cf879fcf8abe0a5c6f1a626092d4 Mon Sep 17 00:00:00 2001 From: Daniel Lundin <dln@arity.se> Date: Sun, 4 May 2025 07:34:28 +0200 Subject: [PATCH] ghostty: devel desktop links only on laptop --- home/common/ghostty.nix | 38 -------------------------------------- home/dln/dinky.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 38 deletions(-) diff --git a/home/common/ghostty.nix b/home/common/ghostty.nix index f2283cb..fea939a 100644 --- a/home/common/ghostty.nix +++ b/home/common/ghostty.nix @@ -87,44 +87,6 @@ terminal = false; type = "Application"; }; - - ghostty-devel = { - categories = [ - "System" - "TerminalEmulator" - ]; - exec = '' - ghostty --class=com.mitchellh.ghostty-devel --command="ssh -t devel" --initial-command="ssh -t devel" - ''; - genericName = "Ghostty (devel)"; - icon = "com.mitchellh.ghostty"; - name = "Ghostty (devel)"; - settings = { - StartupWMClass = "com.mitchellh.ghostty-devel"; - TryExec = "ghostty"; - }; - terminal = false; - type = "Application"; - }; - - ghostty-devel-secondary = { - categories = [ - "System" - "TerminalEmulator" - ]; - exec = '' - ghostty --class=com.mitchellh.ghostty-devel-secondary --background-opacity=0.8 --font-style="ExtraCondensed" --font-style-bold="Bold ExtraCondensed" --font-style-italic="ExtraCondensed Oblique" --command="ssh -t devel" --initial-command="ssh -t devel" - ''; - genericName = "Secondary Ghostty (devel)"; - icon = "com.mitchellh.ghostty"; - name = "Secondary Ghostty (devel)"; - settings = { - StartupWMClass = "com.mitchellh.ghostty-devel-secondary"; - TryExec = "ghostty"; - }; - terminal = false; - type = "Application"; - }; }; }; diff --git a/home/dln/dinky.nix b/home/dln/dinky.nix index 9b9e955..333d785 100644 --- a/home/dln/dinky.nix +++ b/home/dln/dinky.nix @@ -23,4 +23,44 @@ enable = true; pinentryPackage = pkgs.pinentry-curses; }; + + xdg.desktopEntries = { + ghostty-devel = { + categories = [ + "System" + "TerminalEmulator" + ]; + exec = '' + ghostty --class=com.mitchellh.ghostty-devel --command="ssh -t devel" --initial-command="ssh -t devel" + ''; + genericName = "Ghostty (devel)"; + icon = "com.mitchellh.ghostty"; + name = "Ghostty (devel)"; + settings = { + StartupWMClass = "com.mitchellh.ghostty-devel"; + TryExec = "ghostty"; + }; + terminal = false; + type = "Application"; + }; + + ghostty-devel-secondary = { + categories = [ + "System" + "TerminalEmulator" + ]; + exec = '' + ghostty --class=com.mitchellh.ghostty-devel-secondary --background-opacity=0.8 --font-style="ExtraCondensed" --font-style-bold="Bold ExtraCondensed" --font-style-italic="ExtraCondensed Oblique" --command="ssh -t devel" --initial-command="ssh -t devel" + ''; + genericName = "Secondary Ghostty (devel)"; + icon = "com.mitchellh.ghostty"; + name = "Secondary Ghostty (devel)"; + settings = { + StartupWMClass = "com.mitchellh.ghostty-devel-secondary"; + TryExec = "ghostty"; + }; + terminal = false; + type = "Application"; + }; + }; }