summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--dot_config/ghostty/config.tmpl6
-rw-r--r--tests/test_canonical.py14
2 files changed, 16 insertions, 4 deletions
diff --git a/dot_config/ghostty/config.tmpl b/dot_config/ghostty/config.tmpl
index 605c6d1..e38812c 100644
--- a/dot_config/ghostty/config.tmpl
+++ b/dot_config/ghostty/config.tmpl
@@ -12,12 +12,10 @@ clipboard-read = allow
# Bell — request urgency hint on BEL so sway/waybar highlight the workspace
bell-features = attention,title
-# Window — no decorations (sway manages windows)
+# Window
+window-decoration = none
{{ if eq (default "host" (index . "machineRole")) "canonical" }}
-window-decoration = auto
command = {{ .chezmoi.homeDir }}/.nix-profile/bin/zsh -l
-{{ else }}
-window-decoration = none
{{ end }}
confirm-close-surface = false
resize-overlay = never
diff --git a/tests/test_canonical.py b/tests/test_canonical.py
index 1a8c5dd..018d813 100644
--- a/tests/test_canonical.py
+++ b/tests/test_canonical.py
@@ -117,6 +117,20 @@ class PackageTests(unittest.TestCase):
class RoleTests(unittest.TestCase):
+ def test_canonical_ghostty_has_no_window_decoration(self):
+ rendered = subprocess.check_output(
+ self.command(
+ "canonical",
+ "execute-template",
+ "--file",
+ str(ROOT / "dot_config/ghostty/config.tmpl"),
+ ),
+ text=True,
+ )
+ self.assertIn("window-decoration = none", rendered)
+ self.assertNotIn("window-decoration = auto", rendered)
+ self.assertIn("/.nix-profile/bin/zsh -l", rendered)
+
def command(self, role: str, *args: str) -> list[str]:
return [
"chezmoi",