initial release

This commit is contained in:
thomas committed 2026-11-17 09:28:47 +01:00
1 parent 96ab3df34e
commit 9876e39216
57 files changed
+5301 -1

No files matched your search

@@ -0,0 +1,12 @@
function fish_greeting
if status is-login
set_color $theme_muted
echo " Willkommen, $USER."
echo " Desktop starten: "
set_color $theme_accent
echo -n " startlabwc"
set_color $theme_muted
echo " (nur auf der lokalen Konsole)"
set_color normal
end
end
@@ -0,0 +1,36 @@
function fish_prompt
set -l last_status $status
set -l normal (set_color $theme_normal)
set -l dim (set_color $theme_muted)
set -l accent (set_color $theme_accent)
set -l red (set_color $theme_danger)
set -l green (set_color $theme_success)
# Erste Zeile: ╭─ [user@host] ~/pfad on branch
echo -n "$dim╭─$normal"
if set -q SSH_CONNECTION
echo -n " $dim$USER@"(prompt_hostname)"$normal"
end
echo -n " $accent"(prompt_pwd)$normal
if command -q git
set -l branch (command git symbolic-ref --short HEAD 2>/dev/null)
if test -z "$branch"
set branch (command git rev-parse --short HEAD 2>/dev/null)
end
if test -n "$branch"
echo -n " $dim"on"$normal $green$branch$normal"
end
end
echo
# Zweite Zeile: ╰─❯
if test $last_status -ne 0
echo -n "$dim╰─$red❯$normal "
else
echo -n "$dim╰─$accent❯$normal "
end
end
@@ -0,0 +1,4 @@
function fish_right_prompt
set -l dim (set_color $theme_muted)
echo -n "$dim"(date '+%H:%M')" "(set_color normal)
end
@@ -0,0 +1,24 @@
function startlabwc --description 'Startet labwc auf der lokalen Konsole'
if set -q WAYLAND_DISPLAY
set_color $theme_danger
echo "Wayland läuft bereits (WAYLAND_DISPLAY=$WAYLAND_DISPLAY)."
set_color normal
return 1
end
# QEMU/bochs-drm: kein OpenGL, keine Hardware-Cursor
set -lx WLR_RENDERER pixman
set -lx WLR_NO_HARDWARE_CURSORS 1
set -lx XKB_DEFAULT_LAYOUT de
set -lx XDG_SESSION_TYPE wayland
set_color $theme_muted
echo "Starte labwc (pixman, Software-Rendering) ..."
set_color normal
if command -q dbus-run-session
exec dbus-run-session -- labwc
else
exec labwc
end
end