feat(shell): Ptyxis fuer Ubuntu 26 und Wayland einrichten
Ubuntu 26.04 bringt GNOME 50 und damit Ptyxis als Standard-Terminal (Wayland-nativ). install.sh legt die Palette als ~/.local/share/org.gnome.Ptyxis/palettes/KalinaCI.palette ab und haengt sie per gsettings (relocatable Schema org.gnome.Ptyxis.Profile) an jedes Profil; ohne Profil nennt es den Weg von Hand. Neue Vorlage shell/palettes/KalinaCI.palette, README-Abschnitt mit echtem Wayland-Screenshot (74,9 % Tinte, 11,9 % Titelbar, ANSI-Farben innerhalb 2/255).
This commit is contained in:
1 parent
d977a9f856
commit
78d4ed333c
7 files changed
+175
-5
No files matched your search
+78
-2
@@ -233,12 +233,88 @@ do_terminal() {
|
||||
chosen=xfce4-terminal; xfce_setup
|
||||
fi
|
||||
|
||||
# Ptyxis ist seit Ubuntu 26.04 das Standard-Terminal (GNOME 50, Wayland). Es wird
|
||||
# zusaetzlich eingerichtet, weil es neben foot/qterminal liegen kann.
|
||||
if command -v ptyxis >/dev/null && [ "$chosen" != ptyxis ]; then
|
||||
chosen="${chosen:-ptyxis}"; ptyxis_setup
|
||||
fi
|
||||
|
||||
# xterm-Ressourcen zusaetzlich, wenn xterm daneben installiert ist.
|
||||
if command -v xterm >/dev/null && [ "$chosen" != xterm ]; then
|
||||
chosen="${chosen:-xterm}"; xterm_setup
|
||||
fi
|
||||
|
||||
[ -n "$chosen" ] || warn "kein bekanntes Terminal gefunden (foot, qterminal, xfce4-terminal, xterm)"
|
||||
[ -n "$chosen" ] || warn "kein bekanntes Terminal gefunden (foot, ptyxis, qterminal, xfce4-terminal, xterm)"
|
||||
}
|
||||
|
||||
ptyxis_setup() {
|
||||
local dir="$HOME/.local/share/org.gnome.Ptyxis/palettes"
|
||||
local file="$dir/KalinaCI.palette"
|
||||
|
||||
if [ -f "$file" ] && grep -qF "Name=Kalina CI" "$file"; then
|
||||
ok "ptyxis: Palette liegt schon in ~/.local/share/org.gnome.Ptyxis/palettes"
|
||||
else
|
||||
[ -d "$dir" ] || run mkdir -p "$dir"
|
||||
backup "$file"
|
||||
if [ "$DRY" = 0 ]; then
|
||||
cat > "$file" <<'PTYXIS'
|
||||
# Kalina CI — Palette fuer Ptyxis (Ubuntu 26 Standard-Terminal, Wayland).
|
||||
# Kein sudo noetig: diese Datei im Benutzerverzeichnis genuegt.
|
||||
# Quelle im Repo: shell/palettes/KalinaCI.palette — bitte gleich halten.
|
||||
[Palette]
|
||||
Name=Kalina CI
|
||||
Primary=false
|
||||
|
||||
Foreground=#F5F5EF
|
||||
Background=#0B0F14
|
||||
Cursor=#C1121F
|
||||
CursorForeground=#0B0F14
|
||||
TitlebarBackground=#0E131A
|
||||
TitlebarForeground=#8A94A2
|
||||
|
||||
Color0=#1A212A
|
||||
Color1=#E0454F
|
||||
Color2=#7FA88C
|
||||
Color3=#C7A46B
|
||||
Color4=#7E93AD
|
||||
Color5=#BE8FA0
|
||||
Color6=#8FB3B3
|
||||
Color7=#F5F5EF
|
||||
Color8=#5C6675
|
||||
Color9=#FF6B75
|
||||
Color10=#9CC2A8
|
||||
Color11=#E0C08A
|
||||
Color12=#A3B6CB
|
||||
Color13=#D3A8B8
|
||||
Color14=#AECBCB
|
||||
Color15=#FFFFFF
|
||||
PTYXIS
|
||||
fi
|
||||
ok "ptyxis: KalinaCI.palette geschrieben"
|
||||
fi
|
||||
|
||||
# Palette muss noch am Profil haengen; das ist ein dconf-Schluessel, keine Datei.
|
||||
if ! command -v gsettings >/dev/null; then
|
||||
warn "ptyxis: gsettings fehlt — Palette von Hand waehlen: Einstellungen -> Aussehen -> Palette"
|
||||
return 0
|
||||
fi
|
||||
local uuids uuid
|
||||
# gsettings liefert '@as []' als leere Liste — das darf kein Profilpfad werden.
|
||||
uuids="$(gsettings get org.gnome.Ptyxis profile-uuids 2>/dev/null \
|
||||
| sed "s/^@as //; s/[][]//g; s/[ ,]//g; s/'//g")"
|
||||
if [ -z "$uuids" ]; then
|
||||
warn "ptyxis: noch kein Profil vorhanden — Ptyxis einmal oeffnen, dann dieses Skript erneut starten"
|
||||
say " Einstellungen -> Aussehen -> Palette 'Kalina CI' (ggf. 'Alle Paletten anzeigen')"
|
||||
return 0
|
||||
fi
|
||||
for uuid in $uuids; do
|
||||
printf "%s" "$uuid" | grep -qE "^[0-9a-f]{32}$" || { warn "ptyxis: unerwartete Profilkennung '$uuid' — Palette von Hand waehlen"; continue; }
|
||||
run gsettings set "org.gnome.Ptyxis.Profile:/org/gnome/Ptyxis/Profiles/$uuid/" palette "KalinaCI" \
|
||||
&& ok "ptyxis: Palette am Profil ${uuid:0:8} gesetzt"
|
||||
done
|
||||
run gsettings set org.gnome.Ptyxis use-system-font false
|
||||
run gsettings set org.gnome.Ptyxis font-name "DejaVu Sans Mono 12"
|
||||
ok "ptyxis: DejaVu Sans Mono 12 (Systemschrift aus)"
|
||||
}
|
||||
|
||||
foot_setup() {
|
||||
@@ -492,7 +568,7 @@ RC=0
|
||||
|
||||
say ""
|
||||
step "Fertig"
|
||||
if [ "$RC" = 0 ] && [ "$ZSH_OK" = 1 ]; then
|
||||
if [ "$RC" = 0 ] && { [ "$DO_SHELL" = 0 ] || [ "$ZSH_OK" = 1 ]; }; then
|
||||
ok "neu starten: exec zsh — oder einmal neu einloggen (Login-Shell greift erst dann)"
|
||||
elif [ "$RC" = 0 ]; then
|
||||
warn "ohne zsh kein Prompt — im echten Lauf bricht der Shell-Teil hier ab"
|
||||
|
||||
Reference in new issue
Block a user