wezterm: Cross-platform Terminal-Konfiguration hinzugefuegt
- wezterm.lua: Catppuccin Macchiato, MesloLGS NF, 120x35, plattformspezifische Fontgroesse - setup-base.sh: WezTerm via offiziellem apt-Repository installieren - setup-desktop.sh: ~/.wezterm.lua beim Desktop-Setup aus Repo laden
This commit is contained in:
parent
b4a0f27b7b
commit
5f5111fd70
3 changed files with 64 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
43
wezterm.lua
Normal file
43
wezterm.lua
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue