diff --git a/setup-base.sh b/setup-base.sh index 3f40337..9480d2f 100755 --- a/setup-base.sh +++ b/setup-base.sh @@ -175,6 +175,16 @@ if ! command -v fastfetch &>/dev/null; then rm -f /tmp/fastfetch.deb fi +# WezTerm (offizielles apt-Repository) +if ! command -v wezterm &>/dev/null; then + curl -fsSL https://apt.fury.io/wez/gpg.key \ + | gpg --yes --dearmor -o /usr/share/keyrings/wezterm-fury.gpg + echo 'deb [signed-by=/usr/share/keyrings/wezterm-fury.gpg] https://apt.fury.io/wez/ * *' \ + > /etc/apt/sources.list.d/wezterm.list + apt update -qq + apt install -y wezterm && ok "WezTerm installiert" || warn "WezTerm uebersprungen" +fi + # FreeCAD + LibreOffice + Bitwarden via Snap snap install freecad 2>/dev/null || warn "FreeCAD Snap uebersprungen" snap install libreoffice 2>/dev/null || warn "LibreOffice Snap uebersprungen" diff --git a/setup-desktop.sh b/setup-desktop.sh index edf3128..53bccc2 100755 --- a/setup-desktop.sh +++ b/setup-desktop.sh @@ -187,6 +187,17 @@ TERMEOF ok "XFCE Terminal: MesloLGS NF Schriftart" fi +# WezTerm: Konfiguration einrichten +WEZTERM_CFG="$HOME/.wezterm.lua" +if [[ ! -f "$WEZTERM_CFG" ]]; then + curl -fsSL "$FORGEJO/rene/macbook-setup/raw/branch/main/wezterm.lua" \ + -o "$WEZTERM_CFG" \ + && ok "WezTerm: ~/.wezterm.lua eingerichtet" \ + || warn "WezTerm: Konfiguration uebersprungen" +else + ok "WezTerm: ~/.wezterm.lua bereits vorhanden" +fi + # ── Autostart entfernen ───────────────────────────────────────────────── AUTOSTART_FILE="$HOME/.config/autostart/macbook-setup-desktop.desktop" if [[ -f "$AUTOSTART_FILE" ]]; then diff --git a/wezterm.lua b/wezterm.lua new file mode 100644 index 0000000..d4f0381 --- /dev/null +++ b/wezterm.lua @@ -0,0 +1,43 @@ +-- ~/.wezterm.lua +-- Cross-platform Konfiguration fuer macOS und Linux (Xubuntu/XFCE) +-- Farben jederzeit aendern: config.color_scheme = '...' +-- Alle verfuegbaren Schemes: https://wezfurlong.org/wezterm/colorschemes/ + +local wezterm = require 'wezterm' +local config = wezterm.config_builder() + +-- ── Plattform-Erkennung ────────────────────────────────────────────────── +local is_linux = wezterm.target_triple:find('linux') ~= nil + +-- ── Farben ────────────────────────────────────────────────────────────── +config.color_scheme = 'Catppuccin Macchiato' + +-- ── Schrift ───────────────────────────────────────────────────────────── +config.font = wezterm.font('MesloLGS NF') +config.font_size = is_linux and 12.0 or 13.0 + +-- ── Fenster ───────────────────────────────────────────────────────────── +config.initial_cols = 120 +config.initial_rows = 35 +config.window_padding = { left = 8, right = 8, top = 6, bottom = 6 } +config.scrollback_lines = 10000 +config.enable_scroll_bar = false + +-- ── Tab-Leiste ────────────────────────────────────────────────────────── +config.hide_tab_bar_if_only_one_tab = true +config.use_fancy_tab_bar = false + +-- ── Cursor ────────────────────────────────────────────────────────────── +config.default_cursor_style = 'SteadyBar' + +-- ── macOS ──────────────────────────────────────────────────────────────── +if not is_linux then + config.native_macos_fullscreen_mode = true +end + +-- ── Linux / XFCE (X11) ────────────────────────────────────────────────── +if is_linux then + config.enable_wayland = false +end + +return config