@@ -29,29 +29,47 @@ sed -i 's|^SHELL=.*|SHELL=/usr/bin/fish|' /etc/default/useradd 2>/dev/null || \
2929# Starship config is read from STARSHIP_CONFIG env var set in fish config
3030# Config lives at /usr/share/hypercube/config/starship/starship.toml (read-only)
3131
32- # ## Wezterm configs
33- # Wezterm doesn't support XDG_CONFIG_DIRS for system defaults
34- install -Dm644 " ${CONFIG_DIR} /wezterm/wezterm.lua" /etc/skel/.config/wezterm/wezterm.lua
32+ # ## Ghostty terminal - stub that sources system config
33+ # Users can customize by adding settings after the config-file line
34+ mkdir -p /etc/skel/.config/ghostty
35+ cat > /etc/skel/.config/ghostty/config << 'EOF '
36+ # Hypercube Ghostty Configuration
37+ # System defaults are sourced below. Add your customizations after this line.
38+ # To replace defaults entirely, remove or comment out the config-file line.
3539
36- # ## GTK theme settings - install to /etc/skel for new users
37- install -Dm644 " ${CONFIG_DIR} /gtk-3.0/settings.ini" /etc/skel/.config/gtk-3.0/settings.ini
38- install -Dm644 " ${CONFIG_DIR} /gtk-4.0/settings.ini" /etc/skel/.config/gtk-4.0/settings.ini
40+ config-file = /usr/share/hypercube/config/ghostty/config
3941
40- # ## Git UI tools configs (Tokyo Night themed)
41- install -Dm644 " ${CONFIG_DIR} /gitui/theme.ron" /etc/skel/.config/gitui/theme.ron
42- install -Dm644 " ${CONFIG_DIR} /gitui/key_bindings.ron" /etc/skel/.config/gitui/key_bindings.ron
43- install -Dm644 " ${CONFIG_DIR} /lazygit/config.yml" /etc/skel/.config/lazygit/config.yml
42+ # Your customizations below:
43+ EOF
44+
45+ # ## Wezterm terminal - stub that sources system config
46+ # Users can customize by modifying the config table after dofile()
47+ mkdir -p /etc/skel/.config/wezterm
48+ cat > /etc/skel/.config/wezterm/wezterm.lua << 'EOF '
49+ -- Hypercube Wezterm Configuration
50+ -- System defaults are loaded below. Add your customizations after this line.
51+ -- To replace defaults entirely, remove the dofile line and start fresh.
52+
53+ local config = dofile("/usr/share/hypercube/config/wezterm/wezterm.lua")
54+
55+ -- Your customizations below:
56+ -- Example: config.font_size = 14
57+
58+ return config
59+ EOF
60+
61+ # ## GTK theme settings - install to /etc/xdg/ for system-wide defaults
62+ # Users can override by creating ~/.config/gtk-3.0/settings.ini
63+ install -Dm644 " ${CONFIG_DIR} /gtk-3.0/settings.ini" /etc/xdg/gtk-3.0/settings.ini
64+ install -Dm644 " ${CONFIG_DIR} /gtk-4.0/settings.ini" /etc/xdg/gtk-4.0/settings.ini
65+
66+ # ## Git UI tools (gitui, lazygit), Quickshell
67+ # These support XDG_CONFIG_DIRS and will find configs in /usr/share/hypercube/config/
68+ # No skel copy needed - users can override by creating ~/.config/<app>/
4469
4570# ## Qt6 theming (Tokyo Night color scheme)
46- install -Dm644 " ${CONFIG_DIR} /qt6ct/qt6ct.conf" /etc/skel/.config/qt6ct/qt6ct.conf
71+ # Qt6ct supports XDG_CONFIG_DIRS for system-wide defaults
72+ install -Dm644 " ${CONFIG_DIR} /qt6ct/qt6ct.conf" /etc/xdg/qt6ct/qt6ct.conf
4773install -Dm644 " ${CONFIG_DIR} /qt6ct/colors/TokyoNight.conf" /usr/share/qt6ct/colors/TokyoNight.conf
4874
49- # ## Quickshell launcher configuration
50- if [ -d " ${CONFIG_DIR} /quickshell" ]; then
51- echo " Installing Quickshell launcher configuration..."
52- mkdir -p /etc/skel/.config/quickshell
53- cp -r " ${CONFIG_DIR} /quickshell/" * /etc/skel/.config/quickshell/
54- echo " Quickshell configuration installed successfully"
55- fi
56-
5775echo " Hypercube configurations installed successfully"
0 commit comments