wezterm: als Standard-Terminal festlegen (x-terminal-emulator + XFCE helpers.rc)
This commit is contained in:
parent
be520823b9
commit
273978b78f
3 changed files with 25 additions and 0 deletions
10
README.md
10
README.md
|
|
@ -121,8 +121,18 @@ sudo apt update && sudo apt install -y wezterm
|
|||
|
||||
# Konfiguration aus Repo laden (WezTerm laedt sie automatisch neu)
|
||||
curl -fsSL https://git.motocamp.de/rene/macbook-setup/raw/branch/main/wezterm.lua -o ~/.wezterm.lua
|
||||
|
||||
# WezTerm als Standard-Terminal setzen (x-terminal-emulator + XFCE)
|
||||
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/wezterm 50
|
||||
sudo update-alternatives --set x-terminal-emulator /usr/bin/wezterm
|
||||
grep -q "^TerminalEmulator=" ~/.config/xfce4/helpers.rc 2>/dev/null \
|
||||
&& sed -i 's/^TerminalEmulator=.*/TerminalEmulator=wezterm/' ~/.config/xfce4/helpers.rc \
|
||||
|| echo "TerminalEmulator=wezterm" >> ~/.config/xfce4/helpers.rc
|
||||
```
|
||||
|
||||
**macOS:** WezTerm einfach starten — als Standard in System Settings > Desktop & Dock >
|
||||
"Standard-Terminalanwendung" manuell auf WezTerm setzen.
|
||||
|
||||
## Paketquellen
|
||||
|
||||
| App | Quelle | Grund |
|
||||
|
|
|
|||
|
|
@ -184,6 +184,11 @@ if ! command -v wezterm &>/dev/null; then
|
|||
apt update -qq
|
||||
apt install -y wezterm && ok "WezTerm installiert" || warn "WezTerm uebersprungen"
|
||||
fi
|
||||
if command -v wezterm &>/dev/null; then
|
||||
update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/wezterm 50
|
||||
update-alternatives --set x-terminal-emulator /usr/bin/wezterm
|
||||
ok "WezTerm: als x-terminal-emulator gesetzt"
|
||||
fi
|
||||
|
||||
# FreeCAD + LibreOffice + Bitwarden via Snap
|
||||
snap install freecad 2>/dev/null || warn "FreeCAD Snap uebersprungen"
|
||||
|
|
|
|||
|
|
@ -198,6 +198,16 @@ else
|
|||
ok "WezTerm: ~/.wezterm.lua bereits vorhanden"
|
||||
fi
|
||||
|
||||
# WezTerm: XFCE als Standard-Terminal eintragen (helpers.rc)
|
||||
HELPERS_RC="$HOME/.config/xfce4/helpers.rc"
|
||||
mkdir -p "$(dirname "$HELPERS_RC")"
|
||||
if grep -q "^TerminalEmulator=" "$HELPERS_RC" 2>/dev/null; then
|
||||
sed -i 's/^TerminalEmulator=.*/TerminalEmulator=wezterm/' "$HELPERS_RC"
|
||||
else
|
||||
echo "TerminalEmulator=wezterm" >> "$HELPERS_RC"
|
||||
fi
|
||||
ok "WezTerm: XFCE Standard-Terminal gesetzt"
|
||||
|
||||
# ── Autostart entfernen ─────────────────────────────────────────────────
|
||||
AUTOSTART_FILE="$HOME/.config/autostart/macbook-setup-desktop.desktop"
|
||||
if [[ -f "$AUTOSTART_FILE" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue