aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ghostty/.config/ghostty/config30
-rwxr-xr-xghostty/.local/bin/ghostty-colors57
-rw-r--r--ghostty/.stow-local-ignore1
-rw-r--r--ghostty/README.md24
4 files changed, 112 insertions, 0 deletions
diff --git a/ghostty/.config/ghostty/config b/ghostty/.config/ghostty/config
new file mode 100644
index 0000000..2416125
--- /dev/null
+++ b/ghostty/.config/ghostty/config
@@ -0,0 +1,30 @@
+#font-family = "Berkeley Mono Variable"
+#font-style = ""
+#font-variation = wdth=90
+font-family = Adwaita Mono
+background = #1a1a1a
+background-opacity = 0.9
+
+palette = 0=#000000
+palette = 1=#ff5500
+palette = 2=#00dd77
+palette = 3=#ffd67c
+palette = 4=#33bbff
+palette = 5=#cc66ff
+palette = 6=#6ffcf5
+palette = 7=#ffffff
+palette = 8=#808080
+palette = 9=#ff7733
+palette = 10=#44ffaa
+palette = 11=#ffe4a0
+palette = 12=#99eeff
+palette = 13=#cc88ff
+palette = 14=#99ffff
+palette = 15=#ffffff
+
+keybind = shift+enter=text:\x1b\r
+
+window-padding-x = 10
+window-padding-y = 10
+
+config-file = ?config.macos
diff --git a/ghostty/.local/bin/ghostty-colors b/ghostty/.local/bin/ghostty-colors
new file mode 100755
index 0000000..5d9f223
--- /dev/null
+++ b/ghostty/.local/bin/ghostty-colors
@@ -0,0 +1,57 @@
+#!/usr/bin/env bash
+# Print terminal color palette
+
+echo
+echo "=== Ghostty Color Palette ==="
+echo
+
+# Standard colors (0-7)
+echo "Standard colors (0-7):"
+for i in {0..7}; do
+ printf "\e[48;5;%dm %2d \e[0m" "$i" "$i"
+done
+echo
+
+# Bright colors (8-15)
+echo "Bright colors (8-15):"
+for i in {8..15}; do
+ printf "\e[48;5;%dm %2d \e[0m" "$i" "$i"
+done
+echo
+echo
+
+# Foreground text samples
+echo "Foreground samples:"
+for i in {0..7}; do
+ printf "\e[3%dm Color %d \e[0m" "$i" "$i"
+done
+echo
+for i in {0..7}; do
+ printf "\e[9%dm Bright %d \e[0m" "$i" "$i"
+done
+echo
+echo
+
+# Named colors with descriptions
+echo "Named palette positions:"
+names=("black" "red" "green" "yellow" "blue" "magenta" "cyan" "white")
+for i in {0..7}; do
+ printf "\e[48;5;%dm\e[38;5;15m %-8s \e[0m " "$i" "${names[$i]}"
+ printf "\e[48;5;$((i+8))m\e[38;5;0m bright %-8s \e[0m\n" "${names[$i]}"
+done
+echo
+
+# True color gradient test
+echo "True color gradient test:"
+for r in $(seq 0 8 255); do
+ printf "\e[48;2;%d;0;0m \e[0m" "$r"
+done
+echo
+for g in $(seq 0 8 255); do
+ printf "\e[48;2;0;%d;0m \e[0m" "$g"
+done
+echo
+for b in $(seq 0 8 255); do
+ printf "\e[48;2;0;0;%dm \e[0m" "$b"
+done
+echo
diff --git a/ghostty/.stow-local-ignore b/ghostty/.stow-local-ignore
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/ghostty/.stow-local-ignore
@@ -0,0 +1 @@
+README.md
diff --git a/ghostty/README.md b/ghostty/README.md
new file mode 100644
index 0000000..720ee63
--- /dev/null
+++ b/ghostty/README.md
@@ -0,0 +1,24 @@
+# Ghostty Configuration
+
+## Contents
+
+- `.config/ghostty/config` - Main ghostty terminal configuration
+- `.local/bin/ghostty-colors` - Script to display terminal color palette
+
+## ghostty-colors
+
+Prints a visual test of the terminal color palette including:
+- Standard colors (0-7)
+- Bright colors (8-15)
+- Foreground text samples
+- Named color positions
+- True color gradient test
+
+Usage:
+```
+ghostty-colors
+```
+
+## Reloading Config
+
+After editing the config, reload ghostty with `Ctrl+Shift+,`.