From 1ec56b52e5559928a672c26c71731c78b83d00ab Mon Sep 17 00:00:00 2001
From: Von Random <von@mechanus.net>
Date: Thu, 2 Jan 2025 19:07:37 +0200
Subject: [PATCH] ghostty: some linux specific stuff; fish: cm alias

---
 dot_config/ghostty/config.tmpl            | 3 +++
 dot_config/private_fish/functions/cm.fish | 3 +++
 2 files changed, 6 insertions(+)
 create mode 100644 dot_config/private_fish/functions/cm.fish

diff --git a/dot_config/ghostty/config.tmpl b/dot_config/ghostty/config.tmpl
index fb1c4a5..1de8a07 100644
--- a/dot_config/ghostty/config.tmpl
+++ b/dot_config/ghostty/config.tmpl
@@ -5,6 +5,9 @@ font-feature = {{ . }}
 {{- end }}
 font-size = {{ $font.size }}
 
+{{ if eq .chezmoi.os "linux" -}}
+window-decoration = false
+{{- end }}
 cursor-style = block
 cursor-style-blink = false
 cursor-color = #d65d0e
diff --git a/dot_config/private_fish/functions/cm.fish b/dot_config/private_fish/functions/cm.fish
new file mode 100644
index 0000000..4b88623
--- /dev/null
+++ b/dot_config/private_fish/functions/cm.fish
@@ -0,0 +1,3 @@
+function cm
+    command chezmoi $argv
+end