chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

commit 155fca4b06e5786d3f5dc0a523161388699e35d6
parent 3b8a939109243e0fd28217f894ec1c3bd7e5c221
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Sat, 24 Oct 2026 20:23:21 -0400

0.5 (work in progress): KDE Plasma edition, SDDM sign-in on every edition, boot menu theme, Arch LTS kernel with the blue crash screen, blue screen for boot failures, installer fixes

Diffstat:
MVERSION | 2+-
Aartwork/wallpapers/CREDITS.md | 11+++++++++++
Aartwork/wallpapers/crete-coast.jpg | 0
Aartwork/wallpapers/lofoten-aurora.jpg | 0
Aartwork/wallpapers/matterhorn.jpg | 0
Aartwork/wallpapers/mongolian-dunes.jpg | 0
Aartwork/wallpapers/winter-mountain.jpg | 0
Mbuild.sh | 39+++++++++++++++++++++++++++++++++------
Meditions/base.packages | 14+++++++++-----
Meditions/cinnamon/packages | 2+-
Meditions/gnome/edition | 3++-
Deditions/gnome/overlay/etc/dinit.d/display-manager | 12------------
Deditions/gnome/overlay/usr/lib/dinit/gdm | 4----
Meditions/gnome/packages | 2+-
Aeditions/kde/edition | 4++++
Aeditions/kde/packages | 11+++++++++++
Meditions/mate/packages | 2+-
Meditions/xfce/packages | 2+-
Moverlay/etc/dinit.d/display-manager | 6+++---
Moverlay/etc/dinit.d/plymouth-quit | 4++--
Moverlay/etc/profile.d/qt-theme.sh | 8++++++--
Aoverlay/usr/lib/dinit/plymouth-quit | 10++++++++++
Moverlay/usr/lib/live-installer/installer.py | 27+++++++++++++++++++++++----
Moverlay/usr/lib/live-installer/main.py | 10+++++++---
Moverlay/usr/lib/live-installer/partitioning.py | 8++++++++
Moverlay/usr/share/live-installer/slideshow/index.html | 4++--
Doverlay/usr/share/plymouth/themes/chamesle/chamesle.plymouth | 8--------
Doverlay/usr/share/plymouth/themes/chamesle/chamesle.script | 33---------------------------------
Doverlay/usr/share/plymouth/themes/chamesle/logo.png | 0
Mtools/initrd/init | 10+++++++++-
Atools/kernel/arch-kernel.sh | 143+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mtools/pkg/chamesle-base/recipe | 9++++++---
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/background.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/inter-16.pf2 | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/inter-20.pf2 | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/inter-bold-32.pf2 | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_c.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_e.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_n.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_ne.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_nw.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_s.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_se.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_sw.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_w.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_c.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_e.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_n.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_ne.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_nw.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_s.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_se.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_sw.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_w.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_c.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_e.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_n.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_ne.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_nw.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_s.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_se.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_sw.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_w.png | 0
Atools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/theme.txt | 75+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atools/pkg/chamesle-grub/make-theme.py | 106+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atools/pkg/chamesle-grub/post-install | 8++++++++
Atools/pkg/chamesle-grub/post-upgrade | 8++++++++
Atools/pkg/chamesle-grub/recipe | 14++++++++++++++
Atools/pkg/chamesle-kde/files/etc/xdg/kdeglobals | 14++++++++++++++
Atools/pkg/chamesle-kde/files/etc/xdg/kscreenlockerrc | 2++
Atools/pkg/chamesle-kde/files/etc/xdg/ksplashrc | 3+++
Atools/pkg/chamesle-kde/files/etc/xdg/kwinrc | 5+++++
Atools/pkg/chamesle-kde/files/etc/xdg/plasmarc | 2++
Atools/pkg/chamesle-kde/files/usr/share/icons/hicolor/128x128/apps/chamesle-start.png | 0
Atools/pkg/chamesle-kde/files/usr/share/icons/hicolor/16x16/apps/chamesle-start.png | 0
Atools/pkg/chamesle-kde/files/usr/share/icons/hicolor/22x22/apps/chamesle-start.png | 0
Atools/pkg/chamesle-kde/files/usr/share/icons/hicolor/24x24/apps/chamesle-start.png | 0
Atools/pkg/chamesle-kde/files/usr/share/icons/hicolor/256x256/apps/chamesle-start.png | 0
Atools/pkg/chamesle-kde/files/usr/share/icons/hicolor/32x32/apps/chamesle-start.png | 0
Atools/pkg/chamesle-kde/files/usr/share/icons/hicolor/48x48/apps/chamesle-start.png | 0
Atools/pkg/chamesle-kde/files/usr/share/icons/hicolor/64x64/apps/chamesle-start.png | 0
Atools/pkg/chamesle-kde/files/usr/share/plasma/look-and-feel/org.chamesle.desktop/contents/defaults | 14++++++++++++++
Atools/pkg/chamesle-kde/files/usr/share/plasma/look-and-feel/org.chamesle.desktop/contents/layouts/org.kde.plasma.desktop-layout.js | 32++++++++++++++++++++++++++++++++
Atools/pkg/chamesle-kde/files/usr/share/plasma/look-and-feel/org.chamesle.desktop/metadata.json | 14++++++++++++++
Atools/pkg/chamesle-kde/files/usr/share/sddm/themes/chamesle/matterhorn-blur.jpg | 0
Atools/pkg/chamesle-kde/files/usr/share/sddm/themes/chamesle/theme.conf.user | 4++++
Atools/pkg/chamesle-kde/files/usr/share/wallpapers/Chamesle/contents/images/3840x2160.jpg | 0
Atools/pkg/chamesle-kde/files/usr/share/wallpapers/Chamesle/contents/screenshot.jpg | 0
Atools/pkg/chamesle-kde/files/usr/share/wallpapers/Chamesle/metadata.json | 9+++++++++
Atools/pkg/chamesle-kde/recipe | 13+++++++++++++
Atools/pkg/chamesle-plymouth/files/etc/dinit.d/recovery | 5+++++
Atools/pkg/chamesle-plymouth/files/usr/lib/chamesle/blue-screen | 30++++++++++++++++++++++++++++++
Atools/pkg/chamesle-plymouth/files/usr/lib/chamesle/init | 4++++
Mtools/pkg/chamesle-plymouth/files/usr/share/plymouth/themes/chamesle/chamesle.script | 44+++++++++++++++++++++++++++++++++++++++++++-
Atools/pkg/chamesle-plymouth/post-install | 9+++++++++
Atools/pkg/chamesle-plymouth/post-upgrade | 9+++++++++
Mtools/pkg/chamesle-plymouth/recipe | 8++++----
Atools/pkg/chamesle-sddm/files/etc/sddm.conf.d/10-chamesle.conf | 10++++++++++
Atools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/Main.qml | 459+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/arrow.svg | 1+
Atools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/background-blur.jpg | 0
Atools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/background.jpg | 0
Atools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/desktop.svg | 1+
Atools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/eye.svg | 1+
Atools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/power.svg | 1+
Atools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/user.svg | 1+
Atools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/metadata.desktop | 11+++++++++++
Atools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/theme.conf | 6++++++
Atools/pkg/chamesle-sddm/recipe | 14++++++++++++++
109 files changed, 1226 insertions(+), 99 deletions(-)

diff --git a/VERSION b/VERSION @@ -1 +1 @@ -0.4.0 +0.5.0 diff --git a/artwork/wallpapers/CREDITS.md b/artwork/wallpapers/CREDITS.md @@ -0,0 +1,11 @@ +# Wallpapers + +Real photos, cropped to 16:9 and scaled to 3840x2160. All public domain or CC0, from Wikimedia Commons. + +| File | Used for | Photo | Author | License | +|---|---|---|---|---| +| matterhorn.jpg | KDE (0.5), every edition after 0.5 | [Matterhorn sunset 2016](https://commons.wikimedia.org/wiki/File:Matterhorn_sunset_2016_(Unsplash).jpg) | Sam Ferrara (Unsplash, 2016) | CC0 | +| mongolian-dunes.jpg | Ranni | [Khongoryn Els 14](https://commons.wikimedia.org/wiki/File:Khongoryn_Els_14.jpg) | Bernard Gagnon | CC0 | +| lofoten-aurora.jpg | Play | [Lofoten, Norway](https://commons.wikimedia.org/wiki/File:Lofoten,_Norway_(Unsplash).jpg) | Johannes Groll (Unsplash, 2017) | CC0 | +| winter-mountain.jpg | Medico | [Kuznetsk Alatau 1](https://commons.wikimedia.org/wiki/File:Kuznetsk_Alatau_1.jpg) | Dmitry A. Mottl | Public domain | +| crete-coast.jpg | Biolo | [Komos site baie Crète](https://commons.wikimedia.org/wiki/File:Komos_site_baie_Cr%C3%A8te.jpg) | Jebulon | CC0 | diff --git a/artwork/wallpapers/crete-coast.jpg b/artwork/wallpapers/crete-coast.jpg Binary files differ. diff --git a/artwork/wallpapers/lofoten-aurora.jpg b/artwork/wallpapers/lofoten-aurora.jpg Binary files differ. diff --git a/artwork/wallpapers/matterhorn.jpg b/artwork/wallpapers/matterhorn.jpg Binary files differ. diff --git a/artwork/wallpapers/mongolian-dunes.jpg b/artwork/wallpapers/mongolian-dunes.jpg Binary files differ. diff --git a/artwork/wallpapers/winter-mountain.jpg b/artwork/wallpapers/winter-mountain.jpg Binary files differ. diff --git a/build.sh b/build.sh @@ -57,6 +57,14 @@ echo "=== [2/5] CHAMESLE: SERVICES, LOOK AND BRANDING" cp -a "$HERE/overlay/." "$ROOT/" for e in $EDS; do [ -d "$HERE/editions/$e/overlay" ] && cp -a "$HERE/editions/$e/overlay/." "$ROOT/"; done "$HERE/tools/themes.sh" "$ROOT" +# the installer's slideshow starts with this edition's desktop (the website's picture of it) and how to get around +SLIDES=$ROOT/usr/share/live-installer/slideshow +SHOT=; for e in $EDITION $BASE; do [ -z "$SHOT" ] && [ -f "$HERE/docs/img/$e.png" ] && SHOT=$HERE/docs/img/$e.png; done +if [ -n "$SHOT" ]; then cp "$SHOT" "$SLIDES/desktop.png"; else rm -f "$SLIDES/desktop.png"; fi +TOUR=$(edval tour) +if [ -n "$TOUR" ]; then + sed -i "s|<p id=\"tour\">[^<]*</p>|<p id=\"tour\">${TOUR//&/\\&}</p>|" "$SLIDES/index.html" +fi # xfce's stock wallpapers -> ours, for monitors xfce4-desktop.xml doesn't name for f in xfce-x.svg xfce-shapes.svg xfce-stripes.png xfce-teal.png xfce-verticals.png; do [ -d "$ROOT/usr/share/backgrounds/xfce" ] && ln -sf ../chamesle/default.png "$ROOT/usr/share/backgrounds/xfce/$f" @@ -102,8 +110,16 @@ echo 'live ALL=(ALL:ALL) NOPASSWD: ALL' > "$ROOT/etc/sudoers.d/live"; chmod 440 mkdir -p "$ROOT/etc/polkit-1/rules.d" printf 'polkit.addRule(function(action, subject) {\n if (subject.user == "live") return polkit.Result.YES;\n});\n' > "$ROOT/etc/polkit-1/rules.d/49-live.rules" SESSION=$(edval session); SESSION=${SESSION:-${BASE:-$EDITION}} -LOGIN=$(edval login); LOGIN=${LOGIN:-lightdm} -if [ "$LOGIN" = gdm ]; then +LOGIN=$(edval login); LOGIN=${LOGIN:-sddm} +# what an installed system starts: the live one, unless the edition says otherwise (gnome and kde: x11 live, where +# the installer is at home, wayland once installed). the installer reads it for autologin +INSTALLED=$(edval installed-session); INSTALLED=${INSTALLED:-$SESSION} +mkdir -p "$ROOT/etc/chamesle"; echo "$INSTALLED" > "$ROOT/etc/chamesle/session" +if [ "$LOGIN" = sddm ]; then + mkdir -p "$ROOT/etc/sddm.conf.d" + printf '# the live session only (the installer removes this file)\n[Autologin]\nUser=live\nSession=%s.desktop\n' "$SESSION" \ + > "$ROOT/etc/sddm.conf.d/90-live.conf" +elif [ "$LOGIN" = gdm ]; then # gdm has a single config file, the installer takes these lines out again. the session comes from accountsservice sed -i 's/^\[daemon\]$/&\n# the live session only\nAutomaticLoginEnable=True\nAutomaticLogin=live/' "$ROOT/etc/gdm/custom.conf" mkdir -p "$ROOT/var/lib/AccountsService/users" @@ -148,6 +164,9 @@ echo "=== [5/5] SQUASHFS AND ISO" mksquashfs "$ROOT" "$ISO_DIR/live/rootfs.squashfs" -comp zstd -Xcompression-level 15 -b 1M -noappend -no-xattrs -quiet mkdir -p "$ISO_DIR/boot/grub" TITLE="Chamesle Linux $VERSION$SUFFIX ($EDITION_NAME)" +# the same boot menu theme an installed system gets +THEME=$ROOT/usr/share/grub/themes/chamesle +[ -d "$THEME" ] && mkdir -p "$ISO_DIR/boot/grub/themes" && cp -r "$THEME" "$ISO_DIR/boot/grub/themes/" cat > "$ISO_DIR/boot/grub/grub.cfg" <<EOF set default=0 set timeout=5 @@ -156,22 +175,30 @@ insmod gfxterm set gfxmode=1280x800,1024x768,auto set gfxpayload=keep terminal_output gfxterm +if [ -f \$prefix/themes/chamesle/theme.txt ]; then + insmod png + loadfont \$prefix/fonts/unicode.pf2 + loadfont \$prefix/themes/chamesle/inter-16.pf2 + loadfont \$prefix/themes/chamesle/inter-20.pf2 + loadfont \$prefix/themes/chamesle/inter-bold-32.pf2 + set theme=\$prefix/themes/chamesle/theme.txt +fi if [ ! -f /live/vmlinuz ]; then search --no-floppy --set=root --file /live/vmlinuz; fi menuentry "Try or install $TITLE" { - linux /live/vmlinuz quiet splash loglevel=3 + linux /live/vmlinuz quiet splash loglevel=3 drm.panic_screen=kmsg initrd /live/initrd.img } menuentry "$TITLE (safe graphics)" { - linux /live/vmlinuz quiet loglevel=3 nomodeset + linux /live/vmlinuz quiet loglevel=3 nomodeset drm.panic_screen=kmsg initrd /live/initrd.img } menuentry "$TITLE (copy to RAM)" { - linux /live/vmlinuz chamesle.toram=1 quiet splash loglevel=3 + linux /live/vmlinuz chamesle.toram=1 quiet splash loglevel=3 drm.panic_screen=kmsg initrd /live/initrd.img } menuentry "$TITLE (show boot messages)" { - linux /live/vmlinuz loglevel=4 console=tty0 console=ttyS0,115200 + linux /live/vmlinuz loglevel=4 console=tty0 console=ttyS0,115200 drm.panic_screen=kmsg initrd /live/initrd.img } EOF diff --git a/editions/base.packages b/editions/base.packages @@ -3,15 +3,19 @@ # core system base-files bash coreutils findutils diffutils grep sed gawk which file less gzip bzip2 xz zstd tar unzip -util-linux shadow procps-ng psmisc kmod eudev dbus elogind polkit dinit busybox apk-tools plymouth +util-linux shadow procps-ng psmisc kmod eudev dbus elogind polkit dinit busybox apk-tools plymouth chamesle-plymouth iproute2 iputils NetworkManager openssh curl wget ca-certificates rsync -sudo nano glibc-locales tzdata man-db +sudo nano glibc-locales tzdata man-db ncurses -# kernel (the LTS series, pinned), firmware, microcode -linux6.18 linux6.18-headers linux-firmware intel-ucode +# kernel: arch's linux-lts repacked (tools/kernel/arch-kernel.sh), for the blue screen with the log on a crash. +# the same LTS series void ships. firmware, microcode +chamesle-kernel linux-firmware intel-ucode + +# sign-in screen, the same on every edition +sddm chamesle-sddm # disks, filesystems, boot -grub grub-x86_64-efi grub-i386-efi efibootmgr os-prober +chamesle-grub grub grub-x86_64-efi grub-i386-efi efibootmgr os-prober e2fsprogs dosfstools ntfs-3g exfatprogs btrfs-progs xfsprogs cryptsetup lvm2 gptfdisk parted # graphics diff --git a/editions/cinnamon/packages b/editions/cinnamon/packages @@ -1,5 +1,5 @@ # cinnamon edition, the desktop linux mint is known for, set up like windows cinnamon nemo-fileroller xreader eog celluloid gnome-terminal gnome-calculator gnome-screenshot gnome-system-monitor xed blueman pavucontrol gvfs file-roller -lightdm xdg-desktop-portal-gtk xdg-user-dirs-gtk adwaita-icon-theme +xdg-desktop-portal-gtk xdg-user-dirs-gtk adwaita-icon-theme chamesle-cinnamon diff --git a/editions/gnome/edition b/editions/gnome/edition @@ -1,4 +1,5 @@ name=GNOME # the live session is on X11, where the installer is at home. installed systems start on wayland, gnome's default session=gnome-xorg -login=gdm +installed-session=gnome +tour=Press the Windows key, or click Activities top left, to see your windows and search for apps. The dock at the bottom holds your favourites. diff --git a/editions/gnome/overlay/etc/dinit.d/display-manager b/editions/gnome/overlay/etc/dinit.d/display-manager @@ -1,12 +0,0 @@ -# gdm (the gnome edition's, the others use lightdm) -type = process -command = /usr/lib/dinit/gdm -depends-on = dbus -depends-on = elogind -waits-for = polkitd -waits-for = plymouth-quit -waits-for = udev-trigger -waits-for = network -restart = true -smooth-recovery = true -logfile = /var/log/gdm-dinit.log diff --git a/editions/gnome/overlay/usr/lib/dinit/gdm b/editions/gnome/overlay/usr/lib/dinit/gdm @@ -1,4 +0,0 @@ -#!/bin/sh -# gdm wants its run directory made for it -mkdir -m0711 -p /run/gdm && chown root:gdm /run/gdm -exec /usr/bin/gdm diff --git a/editions/gnome/packages b/editions/gnome/packages @@ -1,6 +1,6 @@ # gnome edition: gnome the way gnome does it, plus a dock and tray icons # gnome's own parts without the "gnome" bundle, which brings games, maps, contacts, docs and more -gnome-shell gnome-session gnome-settings-daemon gnome-control-center gnome-keyring gnome-bluetooth gdm +gnome-shell gnome-session gnome-settings-daemon gnome-control-center gnome-keyring gnome-bluetooth nautilus sushi file-roller gnome-console gnome-text-editor gnome-calculator gnome-system-monitor gnome-disk-utility gnome-tweaks loupe evince celluloid gvfs xdg-desktop-portal-gnome xdg-desktop-portal-gtk xdg-user-dirs-gtk adwaita-icon-theme adwaita-fonts diff --git a/editions/kde/edition b/editions/kde/edition @@ -0,0 +1,4 @@ +name=KDE Plasma +# the live session is on X11, where the installer is at home. installed systems start on wayland, plasma's default +session=plasmax11 +installed-session=plasma diff --git a/editions/kde/packages b/editions/kde/packages @@ -0,0 +1,11 @@ +# kde plasma edition: plasma with a windows-style panel, the most to set up and change of all the editions +# plasma's parts without the "kde" bundle, which brings games, education apps, pim and more +# breeze without its qt5 part: nothing here is qt5, and the qt5 kde libraries hit a version mixup in the repo +plasma-desktop plasma-workspace plasma-workspace-x11 kwin kwin-x11 plasma-nm plasma-pa bluedevil powerdevil kscreen kinfocenter +systemsettings kmenuedit kde-cli-tools kactivitymanagerd milou plasma-disks plasma-thunderbolt print-manager +plasma-systemmonitor kdeplasma-addons plasma-integration polkit-kde-agent kwallet-pam kwalletmanager sddm-kcm +breeze-qt6 breeze-icons qqc2-breeze-style breeze-gtk kde-gtk-config ocean-sound-theme xdg-desktop-portal-kde flatpak-kcm kgamma kwrited +# the apps +dolphin konsole kate ark spectacle gwenview okular kcalc filelight partitionmanager kdialog +kio-extras kio-admin kdegraphics-thumbnailers ffmpegthumbs qt6-imageformats qt6-wayland +chamesle-kde diff --git a/editions/mate/packages b/editions/mate/packages @@ -5,5 +5,5 @@ mate-notification-daemon mate-polkit mate-icon-theme marco caja mate-menu mate-media mate-power-manager mate-screensaver mate-system-monitor mate-terminal mate-utils mate-calc caja-open-terminal pluma eom atril engrampa network-manager-applet blueman pavucontrol gvfs -lightdm xdg-desktop-portal-gtk xdg-user-dirs-gtk adwaita-icon-theme gnome-themes-extra +xdg-desktop-portal-gtk xdg-user-dirs-gtk adwaita-icon-theme gnome-themes-extra chamesle-mate diff --git a/editions/xfce/packages b/editions/xfce/packages @@ -2,6 +2,6 @@ xfce4 xfce4-whiskermenu-plugin xfce4-pulseaudio-plugin xfce4-notifyd xfce4-screenshooter xfce4-power-manager xfce4-taskmanager xfce4-clipman-plugin network-manager-applet blueman thunar-volman thunar-archive-plugin ristretto mousepad xarchiver pavucontrol gvfs -lightdm lightdm-gtk-greeter xdg-desktop-portal-gtk xdg-user-dirs-gtk adwaita-icon-theme gnome-themes-extra +xdg-desktop-portal-gtk xdg-user-dirs-gtk adwaita-icon-theme gnome-themes-extra xfce-polkit chamesle-xfce diff --git a/overlay/etc/dinit.d/display-manager b/overlay/etc/dinit.d/display-manager @@ -1,6 +1,6 @@ -# lightdm +# sddm, with the chamesle sign-in screen type = process -command = /usr/bin/lightdm +command = /usr/bin/sddm depends-on = dbus depends-on = elogind waits-for = polkitd @@ -9,4 +9,4 @@ waits-for = udev-trigger waits-for = network restart = true smooth-recovery = true -logfile = /var/log/lightdm-dinit.log +logfile = /var/log/sddm-dinit.log diff --git a/overlay/etc/dinit.d/plymouth-quit b/overlay/etc/dinit.d/plymouth-quit @@ -1,4 +1,4 @@ -# get rid of the splash +# get rid of the splash, before the sign-in screen starts type = scripted -command = /bin/sh -c "plymouth quit --retain-splash || true" +command = /usr/lib/dinit/plymouth-quit depends-on = early-filesystems diff --git a/overlay/etc/profile.d/qt-theme.sh b/overlay/etc/profile.d/qt-theme.sh @@ -1,2 +1,6 @@ -# Qt apps follow the GTK theme, so they look like everything else -[ -n "$QT_QPA_PLATFORMTHEME" ] || export QT_QPA_PLATFORMTHEME=gtk3 +# Qt apps follow the GTK theme, so they look like everything else. not in plasma: it's Qt itself, and with this +# it takes its fonts, colours and icons from GTK instead of its own settings +case "${DESKTOP_SESSION:-}:${XDG_CURRENT_DESKTOP:-}" in + plasma*|*KDE*) ;; + *) [ -n "$QT_QPA_PLATFORMTHEME" ] || export QT_QPA_PLATFORMTHEME=gtk3 ;; +esac diff --git a/overlay/usr/lib/dinit/plymouth-quit b/overlay/usr/lib/dinit/plymouth-quit @@ -0,0 +1,10 @@ +#!/bin/sh +# plymouth quit returns before plymouthd is gone, and plymouthd going puts the screen back on tty1: with sddm's X +# already up on tty2 that left a black screen. so wait until it has really gone, 5 seconds at most +plymouth quit --retain-splash +i=0 +while plymouth --ping 2>/dev/null && [ $i -lt 50 ]; do + sleep 0.1 + i=$((i + 1)) +done +exit 0 diff --git a/overlay/usr/lib/live-installer/installer.py b/overlay/usr/lib/live-installer/installer.py @@ -45,7 +45,18 @@ class InstallerEngine: subprocess.run(["chroot", "/target", "chpasswd", "-c", "SHA512"], input="%s:%s\n" % (self.setup.username, self.setup.password1), text=True) - if self.setup.autologin and os.path.exists("/target/etc/gdm/custom.conf"): + if self.setup.autologin and os.path.exists("/target/usr/bin/sddm"): + # sddm needs the session too: the edition's default, which the build left in /etc/chamesle/session + try: + session = open("/target/etc/chamesle/session").read().strip() + except OSError: + session = "" + if session and not session.endswith(".desktop"): + session += ".desktop" + os.makedirs("/target/etc/sddm.conf.d", exist_ok=True) + with open("/target/etc/sddm.conf.d/80-autologin.conf", "w") as f: + f.write("[Autologin]\nUser=%s\nSession=%s\n" % (self.setup.username, session)) + elif self.setup.autologin and os.path.exists("/target/etc/gdm/custom.conf"): os.system("sed -i 's/^\\[daemon\\]$/&\\nAutomaticLoginEnable=True\\nAutomaticLogin=%s/' /target/etc/gdm/custom.conf" % self.setup.username) elif self.setup.autologin: @@ -220,6 +231,7 @@ class InstallerEngine: print(" --> Removing live configuration") self.update_progress(20, False, False, _("Removing live configuration (packages)")) for path in ("/etc/sudoers.d/live", "/etc/polkit-1/rules.d/49-live.rules", "/etc/lightdm/lightdm.conf.d/90-live.conf", + "/etc/sddm.conf.d/90-live.conf", "/usr/share/applications/chamesle-install.desktop", "/usr/bin/chamesle-install", "/usr/bin/live-installer", "/usr/lib/live-installer", "/usr/share/live-installer", "/usr/share/icons/live-installer-progress-dot-on.png", @@ -238,7 +250,8 @@ class InstallerEngine: self.do_run_in_chroot("passwd -dl root") # Set LightDM to show user list by default - self.do_run_in_chroot(r"sed -i -r 's/^#?(greeter-hide-users)\s*=.*/\1=false/' /etc/lightdm/lightdm.conf") + if os.path.exists("/target/etc/lightdm/lightdm.conf"): + self.do_run_in_chroot(r"sed -i -r 's/^#?(greeter-hide-users)\s*=.*/\1=false/' /etc/lightdm/lightdm.conf") # /etc/fstab, mtab and crypttab self.update_progress(40, False, False, _("Writing filesystem mount information to /etc/fstab")) @@ -564,11 +577,17 @@ class InstallerEngine: if(self.setup.grub_device is not None): self.update_progress(80, False, False, _("Installing bootloader")) self.set_grub_option("GRUB_DISTRIBUTOR", "Chamesle") - self.set_grub_option("GRUB_CMDLINE_LINUX_DEFAULT", "quiet splash loglevel=3") + cmdline = "quiet splash loglevel=3 drm.panic_screen=kmsg" + # dinit with the blue screen when the system can't finish starting + if os.path.exists("/target/usr/lib/chamesle/init"): + cmdline += " init=/usr/lib/chamesle/init" + self.set_grub_option("GRUB_CMDLINE_LINUX_DEFAULT", cmdline) self.set_grub_option("GRUB_DISABLE_OS_PROBER", "false") self.set_grub_option("GRUB_GFXMODE", "auto") self.set_grub_option("GRUB_GFXPAYLOAD_LINUX", "keep") - if os.path.exists("/target/usr/share/backgrounds/chamesle/grub.png"): + if os.path.exists("/target/usr/share/grub/themes/chamesle/theme.txt"): + self.set_grub_option("GRUB_THEME", "/usr/share/grub/themes/chamesle/theme.txt") + elif os.path.exists("/target/usr/share/backgrounds/chamesle/grub.png"): self.set_grub_option("GRUB_BACKGROUND", "/usr/share/backgrounds/chamesle/grub.png") print(" --> Running grub-install") if os.path.exists("/sys/firmware/efi"): diff --git a/overlay/usr/lib/live-installer/main.py b/overlay/usr/lib/live-installer/main.py @@ -1250,9 +1250,13 @@ class InstallerWindow: top = model.append(None, (_("Localization"),)) model.append(top, (_("Language: ") + bold(self.setup.language),)) model.append(top, (_("Timezone: ") + bold(self.setup.timezone),)) - model.append(top, (_("Keyboard layout: ") + - "<b>%s - %s %s</b>" % (self.setup.keyboard_model_description, self.setup.keyboard_layout_description, - '(%s)' % self.setup.keyboard_variant_description if self.setup.keyboard_variant_description else ''),)) + # the layout, its variant if there is one, the model only when it's known (often it isn't: "None - ...") + keyboard = self.setup.keyboard_layout_description or "" + if self.setup.keyboard_variant_description and self.setup.keyboard_variant_description != keyboard: + keyboard += " (%s)" % self.setup.keyboard_variant_description + if self.setup.keyboard_model_description: + keyboard = "%s - %s" % (self.setup.keyboard_model_description, keyboard) + model.append(top, (_("Keyboard layout: ") + "<b>%s</b>" % GLib.markup_escape_text(keyboard),)) top = model.append(None, (_("User settings"),)) model.append(top, (_("Real name: ") + bold(self.setup.real_name),)) model.append(top, (_("Username: ") + bold(self.setup.username),)) diff --git a/overlay/usr/lib/live-installer/partitioning.py b/overlay/usr/lib/live-installer/partitioning.py @@ -159,6 +159,10 @@ def get_disks(): if re.match("/dev/mmcblk[0-9]+rpmb$", device): print("Excluding %s (eMMC hardware device)" % device) continue + # compressed swap in RAM (chamesle has it on), not a disk + if re.match("/dev/zram[0-9]+$", device): + print("Excluding %s (swap in RAM)" % device) + continue # Convert size to manufacturer's size (i.e. GB, not GiB) unit_index = 'BKMGTPEZY'.index(size.upper()[-1]) @@ -333,6 +337,10 @@ class PartitionSetup(Gtk.TreeStore): print(" - Found the disk...") except Exception as detail: print(" - Found an issue while looking for the disk: %s" % detail) + # erasing a disk or installing next to windows: the user said yes to that already, and the + # installer partitions the disk itself. the question is only for doing it by hand + if installer.setup.automated or installer.setup.alongside: + continue dialog = QuestionDialog(_("Installation Tool"), _("No partition table was found on the hard drive: %s. Do you want the installer to create a set of partitions for you? Note: This will ERASE ALL DATA present on this disk.") % disk_description, None, installer.window) diff --git a/overlay/usr/share/live-installer/slideshow/index.html b/overlay/usr/share/live-installer/slideshow/index.html @@ -25,9 +25,9 @@ img.logo { width: 150px; box-shadow: none; } <div class="body"> <div class="text"> <p>Thanks for choosing Chamesle. This will take a few minutes, here's a quick tour while you wait.</p> - <p>The start menu is bottom left, or press the Windows key. The taskbar and the clock are where you'd expect.</p> + <p id="tour">The start menu is bottom left, or press the Windows key. The taskbar and the clock are where you'd expect.</p> </div> - <img src="desktop.png" alt=""> + <img src="desktop.png" alt="" onerror="this.remove()"> </div> </div> diff --git a/overlay/usr/share/plymouth/themes/chamesle/chamesle.plymouth b/overlay/usr/share/plymouth/themes/chamesle/chamesle.plymouth @@ -1,8 +0,0 @@ -[Plymouth Theme] -Name=Chamesle -Description=The Chamesle logo turning slowly on black -ModuleName=script - -[script] -ImageDir=/usr/share/plymouth/themes/chamesle -ScriptFile=/usr/share/plymouth/themes/chamesle/chamesle.script diff --git a/overlay/usr/share/plymouth/themes/chamesle/chamesle.script b/overlay/usr/share/plymouth/themes/chamesle/chamesle.script @@ -1,33 +0,0 @@ -// Chamesle boot splash: the logo spinning in the middle of a black screen. -Window.SetBackgroundTopColor(0, 0, 0); -Window.SetBackgroundBottomColor(0, 0, 0); - -logo.image = Image("logo.png"); -// about a quarter of the screen's height, whatever the resolution -size = Math.Int(Window.GetHeight() / 4); -logo.image = logo.image.Scale(size, size); -logo.sprite = Sprite(); -angle = 0; - -fun refresh_callback() { - angle = angle + 0.04; - if (angle > 6.2832) angle = angle - 6.2832; - turned = logo.image.Rotate(angle); - logo.sprite.SetImage(turned); - logo.sprite.SetX(Window.GetX() + Window.GetWidth() / 2 - turned.GetWidth() / 2); - logo.sprite.SetY(Window.GetY() + Window.GetHeight() / 2 - turned.GetHeight() / 2); -} -Plymouth.SetRefreshFunction(refresh_callback); - -// a LUKS passphrase prompt (encrypted installs): a line of dots under the logo -fun display_password_callback(prompt, bullets) { - text = prompt + " "; - for (i = 0; i < bullets; i++) text = text + "*"; - message.image = Image.Text(text, 1, 1, 1); - message.sprite = Sprite(message.image); - message.sprite.SetX(Window.GetX() + Window.GetWidth() / 2 - message.image.GetWidth() / 2); - message.sprite.SetY(Window.GetY() + Window.GetHeight() * 0.8); -} -Plymouth.SetDisplayPasswordFunction(display_password_callback); -fun display_normal_callback() { message.sprite = Sprite(); } -Plymouth.SetDisplayNormalFunction(display_normal_callback); diff --git a/overlay/usr/share/plymouth/themes/chamesle/logo.png b/overlay/usr/share/plymouth/themes/chamesle/logo.png Binary files differ. diff --git a/tools/initrd/init b/tools/initrd/init @@ -14,6 +14,12 @@ exec </dev/console >/dev/console 2>&1 log() { echo "[live] $*"; } SPLASH=0 emergency() { + # something's wrong: the blue screen says what, any key goes on to the shell. not for the debug shells + if [ "$SPLASH" = 1 ] && [ "$DEBUG" = 0 ] && [ "$SHELL_FIRST" = 0 ]; then + plymouth display-message --text=chamesle-error + plymouth display-message --text="$*" + plymouth watch-keystroke >/dev/null 2>&1 + fi [ "$SPLASH" = 1 ] && { plymouth quit; SPLASH=0; } echo "[live] $*" echo "[live] starting a shell; leave it with 'exit' to try again" @@ -224,7 +230,9 @@ fi [ "$DEBUG" = 1 ] && emergency "chamesle.debug=1: about to switch root" [ -x "/newroot$INIT" ] || emergency "$INIT not found in the system image" INIT_ARGS= -[ "$QUIET" = 1 ] && [ "$INIT" = /usr/bin/dinit ] && [ "$DEBUG" = 0 ] && INIT_ARGS=--quiet +# dinit starts the blue screen (its recovery service) on its own if the system can't finish starting +[ "$INIT" = /usr/bin/dinit ] && [ -x /newroot/usr/lib/chamesle/blue-screen ] && INIT_ARGS=--auto-recovery +[ "$QUIET" = 1 ] && [ "$INIT" = /usr/bin/dinit ] && [ "$DEBUG" = 0 ] && INIT_ARGS="$INIT_ARGS --quiet" [ "$SPLASH" = 1 ] && plymouth update-root-fs --new-root-dir=/newroot udevadm control --exit 2>/dev/null exec switch_root /newroot "$INIT" $INIT_ARGS diff --git a/tools/kernel/arch-kernel.sh b/tools/kernel/arch-kernel.sh @@ -0,0 +1,143 @@ +#!/bin/bash +# our kernel is arch's linux-lts, repacked as apks: chamesle-kernel and chamesle-kernel-headers +# tools/kernel/arch-kernel.sh the newest linux-lts arch has +# why arch's: it shows a blue screen with the log when the kernel crashes (CONFIG_DRM_PANIC, white on 0x0000aa), +# void's kernel has that switched off. it's the same lts series void ships, so out-of-tree drivers (nvidia, +# broadcom-wl through dkms) build the same way. a kernel doesn't care about the libc, nothing gets compiled +# the packages call void's kernel hooks like void's kernel does: initramfs (dracut), dkms and the boot menu +set -euo pipefail +HERE=$(cd "$(dirname "$0")" && pwd) +TOP=$HERE/../.. +APK=${APK:-apk} +REPO=${REPO:-$TOP/work/repo} +CACHE=${CACHE:-$TOP/work/kernel} +KEY=$(ls "$HOME"/.config/chamesle/chamesle-*.rsa | sort | tail -n1) +MIRROR=${MIRROR:-https://geo.mirror.pkgbuild.com/core/os/x86_64} +ARCH=x86_64 +mkdir -p "$CACHE" "$REPO/$ARCH" + +# a big file in 6 pieces at once: one connection is slow on a phone hotspot +fetch() { + local url=$1 out=$2 n size step i s e + [ -f "$out" ] && return + size=$(curl -sIL "$url" | tr -d '\r' | awk 'tolower($1)=="content-length:"{n=$2} END{print n}') + [ -n "$size" ] || { echo "arch-kernel: can't reach $url" >&2; exit 1; } + n=6 step=$(( (size + 5) / 6 )) + for i in $(seq 0 $((n - 1))); do + s=$((i * step)) e=$((i * step + step - 1)); [ $e -lt $size ] || e=$((size - 1)) + ( for try in 1 2 3 4 5 6 7 8; do + curl -fsSL --range $s-$e -o "$out.$i" "$url" && [ "$(stat -c%s "$out.$i")" = $((e - s + 1)) ] && break + sleep 3 + done ) & + done + wait + for i in $(seq 0 $((n - 1))); do cat "$out.$i"; done > "$out.new" + rm -f "$out".[0-9] + [ "$(stat -c%s "$out.new")" = "$size" ] || { echo "arch-kernel: $url came down broken" >&2; exit 1; } + mv "$out.new" "$out" +} + +# signed by an arch packager: the key has to be the one archlinux.org publishes for that address +verify() { + local f=$1 g fpr email + g=$(mktemp -d) + fpr=$(GNUPGHOME=$g gpg --list-packets "$f.sig" 2>/dev/null | sed -n 's/.*issuer fpr v4 \([0-9A-F]*\).*/\1/p' | head -n1) + GNUPGHOME=$g gpg -q --keyserver hkps://keyserver.ubuntu.com --recv-keys "$fpr" 2>/dev/null + email=$(GNUPGHOME=$g gpg --with-colons --list-keys "$fpr" | awk -F: '$1=="uid"{print $10}' | + grep -o '[^<]*@archlinux\.org' | head -n1) + [ -n "$email" ] || { echo "arch-kernel: $f isn't signed by an arch packager" >&2; exit 1; } + rm -rf "$g"; g=$(mktemp -d) + GNUPGHOME=$g gpg -q --auto-key-locate clear,wkd --locate-keys "$email" >/dev/null 2>&1 + GNUPGHOME=$g gpg --with-colons --list-keys "$email" 2>/dev/null | grep -q "^fpr:*$fpr:" || + { echo "arch-kernel: archlinux.org doesn't list $fpr for $email" >&2; exit 1; } + GNUPGHOME=$g gpg -q --verify "$f.sig" "$f" 2>/dev/null || { echo "arch-kernel: bad signature on $f" >&2; exit 1; } + rm -rf "$g" + echo "$(basename "$f"): signed by $email" +} + +for p in linux-lts linux-lts-headers; do + file=$(curl -fsSL "https://archlinux.org/packages/core/$ARCH/$p/json/" | python3 -c 'import json,sys; print(json.load(sys.stdin)["filename"])') + fetch "$MIRROR/$file" "$CACHE/$file" + [ -f "$CACHE/$file.sig" ] || curl -fsSL -o "$CACHE/$file.sig" "$MIRROR/$file.sig" + verify "$CACHE/$file" + eval "${p//-/_}=\$CACHE/\$file" +done + +W=$TOP/work/kernel/build +rm -rf "$W"; mkdir -p "$W/k" "$W/h" "$W/scripts" +bsdtar -xf "$linux_lts" -C "$W/k" +bsdtar -xf "$linux_lts_headers" -C "$W/h" +KV=$(ls "$W/k/usr/lib/modules") # 6.18.58-1-lts +ver=$(echo "$KV" | sed 's/-\([0-9]*\)-lts$/-r\1/') # 6.18.58-r1 +rm -f "$W"/k/.[A-Z]* "$W"/h/.[A-Z]* +# where void's kernels are and the hooks look: /boot/vmlinuz-VERSION, the config next to it +mkdir -p "$W/k/boot" +mv "$W/k/usr/lib/modules/$KV/vmlinuz" "$W/k/boot/vmlinuz-$KV" +cp "$W/h/usr/lib/modules/$KV/build/.config" "$W/k/boot/config-$KV" +rm -f "$W/k/usr/lib/modules/$KV/pkgbase" "$W/h/usr/lib/modules/$KV/build/../pkgbase" +rm -rf "$W/h/usr/src" "$W/h/usr/share/doc" +# modules.dep and friends in the package: an image built without running scripts can still load modules +depmod -b "$W/k/usr" "$KV" 2>/dev/null || depmod -b "$W/k" "$KV" + +hooks() { # hooks TARGET: what void's kernel package runs, for this kernel + echo "( cd / && kernel_hooks_version=$KV /usr/libexec/xbps-triggers/kernel-hooks run $1 chamesle-kernel $KV no )" +} +# the crash screen shows the log on blue, not arch's qr code to their bug site. on the boot line, so it's set +# before anything can crash: systems installed before this kernel get it added to their grub settings here +panic() { + cat <<'P' +g=/etc/default/grub +if [ -f $g ] && ! grep -q 'drm.panic_screen=' $g; then + sed -i 's/^\(GRUB_CMDLINE_LINUX_DEFAULT="[^"]*\)"/\1 drm.panic_screen=kmsg"/' $g +fi +P +} +cat > "$W/scripts/post-install" <<EOF +#!/bin/sh +$(panic) +depmod -a $KV +$(hooks post-install) +exit 0 +EOF +# an upgrade brings a new kernel version: hooks for it, and the old one's initramfs and menu entry go. +# leftovers of a removed version (dkms modules, depmod's files) are all that's in its modules folder then +cat > "$W/scripts/post-upgrade" <<EOF +#!/bin/sh +$(panic) +depmod -a $KV +$(hooks post-install) +for d in /usr/lib/modules/*-lts; do + v=\${d##*/} + [ "\$v" = $KV ] || [ -e "\$d/modules.order" ] && continue + rm -rf "\$d" /boot/initramfs-\$v.img + ( cd / && kernel_hooks_version=\$v /usr/libexec/xbps-triggers/kernel-hooks run post-remove chamesle-kernel \$v no ) +done +exit 0 +EOF +cat > "$W/scripts/pre-deinstall" <<EOF +#!/bin/sh +$(hooks pre-remove) +exit 0 +EOF +cat > "$W/scripts/post-deinstall" <<EOF +#!/bin/sh +rm -f /boot/initramfs-$KV.img +$(hooks post-remove) +exit 0 +EOF + +pack() { # pack NAME DIR DESC DEPENDS SCRIPTS... + local name=$1 dir=$2 desc=$3 deps=$4 info s; shift 4 + info=(--info "name:$name" --info "version:$ver" --info "arch:$ARCH" --info "description:$desc" + --info "url:https://chamesle.org" --info "license:GPL-2.0-only" + --info "maintainer:Chamesle Linux <packages@chamesle.org>" --info "depends:$deps") + for s in "$@"; do info+=(--script "$s:$W/scripts/$s"); done + unshare --map-root-user --map-auto "$APK" mkpkg --files "$dir" --output "$REPO/$ARCH/$name-$ver.apk" \ + --sign-key "$KEY" "${info[@]}" + echo "built $REPO/$ARCH/$name-$ver.apk" +} +chmod 755 "$W"/scripts/* +# headers first in the depends: dkms builds drivers in the kernel's post-install, against them +pack chamesle-kernel-headers "$W/h" "Headers to build drivers for the Chamesle kernel" "pahole make" +pack chamesle-kernel "$W/k" "The Chamesle kernel: Linux $KV, with a blue screen and the log on a crash" \ + "chamesle-kernel-headers=$ver kmod dracut linux-firmware" post-install post-upgrade pre-deinstall post-deinstall diff --git a/tools/pkg/chamesle-base/recipe b/tools/pkg/chamesle-base/recipe @@ -1,6 +1,6 @@ name=chamesle-base -version=0.4.0 -rel=1 +version=0.5.0 +rel=0 desc="Chamesle system setup: sound, kernel modules at boot, a few small touches" url=https://chamesle.org license=GPL-3.0-or-later @@ -9,7 +9,10 @@ makedeps="" # ncurses-term: the terminal descriptions htop, nano and friends need (xterm-256color, tmux, kitty...) # pipewire: started at login by the links in files/, with wireplumber and the pulseaudio server # chamesle-snapshots: a snapshot before every update, on btrfs installs (nothing happens on older ext4 ones) -depends="kmod sudo fastfetch ncurses-term pipewire wireplumber chamesle-snapshots" +# chamesle-kernel: the blue crash screen with the log. void's kernel stays next to it, in the boot menu's advanced options +# chamesle-plymouth: the boot screen, and the blue screen when the system can't finish starting +# chamesle-grub: the boot menu. ncurses: clear, reset and tput +depends="kmod sudo fastfetch ncurses ncurses-term pipewire wireplumber chamesle-snapshots chamesle-kernel chamesle-plymouth chamesle-grub" build() { cp -a . "$pkgdir/" diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/background.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/background.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/inter-16.pf2 b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/inter-16.pf2 Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/inter-20.pf2 b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/inter-20.pf2 Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/inter-bold-32.pf2 b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/inter-bold-32.pf2 Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_c.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_c.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_e.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_e.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_n.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_n.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_ne.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_ne.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_nw.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_nw.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_s.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_s.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_se.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_se.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_sw.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_sw.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_w.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/item_w.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_c.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_c.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_e.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_e.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_n.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_n.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_ne.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_ne.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_nw.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_nw.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_s.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_s.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_se.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_se.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_sw.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_sw.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_w.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/menu_w.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_c.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_c.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_e.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_e.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_n.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_n.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_ne.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_ne.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_nw.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_nw.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_s.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_s.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_se.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_se.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_sw.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_sw.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_w.png b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/select_w.png Binary files differ. diff --git a/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/theme.txt b/tools/pkg/chamesle-grub/files/usr/share/grub/themes/chamesle/theme.txt @@ -0,0 +1,75 @@ +# the chamesle boot menu: the wallpaper, a calm list in the middle and what the keys do at the bottom +desktop-image: "background.png" +desktop-image-scale-method: "stretch" +title-text: "" +# the editor and command line: grub's own font, which is monospaced and has the frame's box characters +terminal-font: "Unifont Regular 16" +terminal-left: "10%" +terminal-top: "10%" +terminal-width: "80%" +terminal-height: "80%" +terminal-box: "menu_*.png" + ++ label { + top = 13% + left = 0 + width = 100% + height = 48 + align = "center" + text = "Chamesle" + font = "Inter Bold 32" + color = "#ffffff" +} ++ label { + top = 13%+52 + left = 0 + width = 100% + height = 24 + align = "center" + text = "Choose what to start" + font = "Inter Regular 16" + color = "#b9c9e6" +} + ++ boot_menu { + left = 50%-330 + top = 30% + width = 660 + height = 46% + menu_pixmap_style = "menu_*.png" + selected_item_pixmap_style = "select_*.png" + item_pixmap_style = "item_*.png" + item_font = "Inter Regular 20" + item_color = "#e8eefa" + selected_item_font = "Inter Regular 20" + selected_item_color = "#0c1830" + item_height = 34 + item_padding = 14 + item_spacing = 20 + icon_width = 0 + icon_height = 0 + item_icon_space = 0 + scrollbar = false +} + ++ label { + id = "__timeout__" + top = 100%-104 + left = 0 + width = 100% + height = 24 + align = "center" + text = "Starting in %d seconds" + font = "Inter Regular 16" + color = "#e8eefa" +} ++ label { + top = 100%-68 + left = 0 + width = 100% + height = 24 + align = "center" + text = "↑ ↓ to choose • Enter to start • E to change the boot line • C for a command line" + font = "Inter Regular 16" + color = "#8fa3c7" +} diff --git a/tools/pkg/chamesle-grub/make-theme.py b/tools/pkg/chamesle-grub/make-theme.py @@ -0,0 +1,106 @@ +#!/usr/bin/env python3 +# makes the chamesle boot menu theme in files/usr/share/grub/themes/chamesle: the pictures, and the fonts as grub's +# pf2 (void's grub comes without grub-mkfont, so they're drawn here with pillow) +# make-theme.py INTER_DIR the folder with Inter-Regular.ttf and Inter-Bold.ttf +import os +import struct +import sys + +from PIL import Image, ImageDraw, ImageEnhance, ImageFilter, ImageFont + +HERE = os.path.dirname(os.path.abspath(__file__)) +OUT = os.path.join(HERE, 'files/usr/share/grub/themes/chamesle') +ART = os.path.join(HERE, '../chamesle-artwork/files/usr/share/backgrounds/chamesle/grub.png') +# ascii, latin-1 for names in other languages, and the arrows and dot of the hints. grub wants them in order +CHARS = sorted([c for c in range(0x20, 0x7f)] + [c for c in range(0xa0, 0x100)] + [0x2191, 0x2193, 0x2022, 0x2026, 0x2013, 0x2014]) + + +def pf2(ttf, size, family, weight, path): + font = ImageFont.truetype(ttf, size) + ascent, descent = font.getmetrics() + glyphs = [] + for cp in CHARS: + ch = chr(cp) + if font.getmask(ch).getbbox() is None and cp != 0x20 and cp != 0xa0: + continue + adv = round(font.getlength(ch)) + l, t, r, b = font.getbbox(ch, anchor='ls') + w, h = max(r - l, 0), max(b - t, 0) + bits = b'' + if w and h: + img = Image.new('L', (w, h), 0) + d = ImageDraw.Draw(img) + d.fontmode = '1' + d.text((-l, -t), ch, font=font, fill=255, anchor='ls') + px = img.load() + # the rows one after another, no padding between them, most significant bit first + acc, n, out = 0, 0, bytearray() + for y in range(h): + for x in range(w): + acc = acc << 1 | (px[x, y] > 127) + n += 1 + if n == 8: + out.append(acc); acc, n = 0, 0 + if n: + out.append(acc << (8 - n)) + bits = bytes(out) + # yoffset: from the baseline up to the bitmap's bottom row + glyphs.append((cp, struct.pack('>HHhhh', w, h, l, -b, adv) + bits)) + name = '%s %s %d' % (family, weight.capitalize(), size) + + def sec(tag, data): + return tag + struct.pack('>I', len(data)) + data + + head = (sec(b'FILE', b'PFF2') + sec(b'NAME', name.encode() + b'\0') + sec(b'FAMI', family.encode() + b'\0') + + sec(b'WEIG', weight.encode() + b'\0') + sec(b'SLAN', b'normal\0') + sec(b'PTSZ', struct.pack('>H', size)) + + sec(b'MAXW', struct.pack('>H', max(struct.unpack('>H', g[1][:2])[0] for g in glyphs))) + + sec(b'MAXH', struct.pack('>H', max(struct.unpack('>H', g[1][2:4])[0] for g in glyphs))) + + sec(b'ASCE', struct.pack('>H', ascent)) + sec(b'DESC', struct.pack('>H', descent))) + # the index points at each glyph by its place in the file + pos = len(head) + 8 + 9 * len(glyphs) + 8 + index, data = b'', b'' + for cp, g in glyphs: + index += struct.pack('>IBI', cp, 0, pos + len(data)) + data += g + with open(path, 'wb') as f: + f.write(head + b'CHIX' + struct.pack('>I', len(index)) + index + b'DATA' + b'\xff\xff\xff\xff' + data) + return name + + +def box(prefix, fill, radius, border=None): + # a rounded box in grub's nine pieces: corners, edges and the middle, which grub stretches + s = radius * 2 + 1 + big = Image.new('RGBA', (s * 4, s * 4), (0, 0, 0, 0)) + ImageDraw.Draw(big).rounded_rectangle((0, 0, s * 4 - 1, s * 4 - 1), radius * 4, fill=fill, + outline=border, width=4 if border else 0) + img = big.resize((s, s), Image.LANCZOS) + r = radius + parts = {'nw': (0, 0, r, r), 'n': (r, 0, r + 1, r), 'ne': (r + 1, 0, s, r), + 'w': (0, r, r, r + 1), 'c': (r, r, r + 1, r + 1), 'e': (r + 1, r, s, r + 1), + 'sw': (0, r + 1, r, s), 's': (r, r + 1, r + 1, s), 'se': (r + 1, r + 1, s, s)} + for k, b in parts.items(): + img.crop(b).save(os.path.join(OUT, '%s_%s.png' % (prefix, k))) + + +def main(): + inter = sys.argv[1] + os.makedirs(OUT, exist_ok=True) + # what this makes, theme.txt is written by hand + for f in os.listdir(OUT): + if f.endswith(('.png', '.pf2')): + os.remove(os.path.join(OUT, f)) + names = [pf2(os.path.join(inter, 'Inter-Regular.ttf'), 16, 'Inter', 'regular', os.path.join(OUT, 'inter-16.pf2')), + pf2(os.path.join(inter, 'Inter-Regular.ttf'), 20, 'Inter', 'regular', os.path.join(OUT, 'inter-20.pf2')), + pf2(os.path.join(inter, 'Inter-Bold.ttf'), 32, 'Inter', 'bold', os.path.join(OUT, 'inter-bold-32.pf2'))] + # the wallpaper a little darker and softer, so the menu reads well on it. small: grub decodes it slowly, blurred + # it loses nothing when stretched + bg = Image.open(ART).convert('RGB').resize((1280, 720), Image.LANCZOS).filter(ImageFilter.GaussianBlur(2)) + ImageEnhance.Brightness(bg).enhance(0.8).save(os.path.join(OUT, 'background.png'), optimize=True) + box('menu', (12, 20, 40, 170), 14, border=(255, 255, 255, 40)) + box('select', (255, 255, 255, 235), 10) + # the same size, invisible: grub moves an item by its box's border, this way every item moves the same + box('item', (0, 0, 0, 0), 10) + print('\n'.join(names)) + + +main() diff --git a/tools/pkg/chamesle-grub/post-install b/tools/pkg/chamesle-grub/post-install @@ -0,0 +1,8 @@ +#!/bin/sh +# the boot menu uses the theme, unless someone picked another one. the menu is made again on installed systems +g=/etc/default/grub +if [ -f $g ] && ! grep -q '^GRUB_THEME=' $g; then + echo 'GRUB_THEME="/usr/share/grub/themes/chamesle/theme.txt"' >> $g + [ -f /boot/grub/grub.cfg ] && grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1 +fi +exit 0 diff --git a/tools/pkg/chamesle-grub/post-upgrade b/tools/pkg/chamesle-grub/post-upgrade @@ -0,0 +1,8 @@ +#!/bin/sh +# the boot menu uses the theme, unless someone picked another one. the menu is made again on installed systems +g=/etc/default/grub +if [ -f $g ] && ! grep -q '^GRUB_THEME=' $g; then + echo 'GRUB_THEME="/usr/share/grub/themes/chamesle/theme.txt"' >> $g + [ -f /boot/grub/grub.cfg ] && grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1 +fi +exit 0 diff --git a/tools/pkg/chamesle-grub/recipe b/tools/pkg/chamesle-grub/recipe @@ -0,0 +1,14 @@ +name=chamesle-grub +version=0.5.0 +rel=1 +desc="The Chamesle boot menu: the wallpaper, Inter and a list that's easy to read" +url=https://chamesle.org +license=GPL-3.0-or-later +source= +makedeps="" +# files/ comes from make-theme.py, run it again after changing the pictures or fonts +depends="grub" + +build() { + cp -a . "$pkgdir/" +} diff --git a/tools/pkg/chamesle-kde/files/etc/xdg/kdeglobals b/tools/pkg/chamesle-kde/files/etc/xdg/kdeglobals @@ -0,0 +1,14 @@ +[General] +ColorScheme=BreezeLight +font=Inter,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 +menuFont=Inter,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 +toolBarFont=Inter,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 +smallestReadableFont=Inter,8,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 +fixed=Noto Sans Mono,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 + +[Icons] +Theme=breeze + +[KDE] +LookAndFeelPackage=org.chamesle.desktop +widgetStyle=Breeze diff --git a/tools/pkg/chamesle-kde/files/etc/xdg/kscreenlockerrc b/tools/pkg/chamesle-kde/files/etc/xdg/kscreenlockerrc @@ -0,0 +1,2 @@ +[Greeter][Wallpaper][org.kde.image][General] +Image=/usr/share/wallpapers/Chamesle/contents/images/3840x2160.jpg diff --git a/tools/pkg/chamesle-kde/files/etc/xdg/ksplashrc b/tools/pkg/chamesle-kde/files/etc/xdg/ksplashrc @@ -0,0 +1,3 @@ +[KSplash] +Engine=KSplashQML +Theme=org.kde.breeze.desktop diff --git a/tools/pkg/chamesle-kde/files/etc/xdg/kwinrc b/tools/pkg/chamesle-kde/files/etc/xdg/kwinrc @@ -0,0 +1,5 @@ +[org.kde.kdecoration2] +library=org.kde.breeze +theme=Breeze +ButtonsOnLeft= +ButtonsOnRight=IAX diff --git a/tools/pkg/chamesle-kde/files/etc/xdg/plasmarc b/tools/pkg/chamesle-kde/files/etc/xdg/plasmarc @@ -0,0 +1,2 @@ +[Theme] +name=breeze-dark diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/128x128/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/128x128/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/16x16/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/16x16/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/22x22/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/22x22/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/24x24/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/24x24/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/256x256/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/256x256/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/32x32/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/32x32/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/48x48/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/48x48/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/64x64/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/64x64/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/plasma/look-and-feel/org.chamesle.desktop/contents/defaults b/tools/pkg/chamesle-kde/files/usr/share/plasma/look-and-feel/org.chamesle.desktop/contents/defaults @@ -0,0 +1,14 @@ +[kdeglobals][General] +ColorScheme=BreezeLight + +[kdeglobals][Icons] +Theme=breeze + +[kdeglobals][KDE] +widgetStyle=Breeze + +[plasmarc][Theme] +name=breeze-dark + +[Wallpaper] +Image=Chamesle diff --git a/tools/pkg/chamesle-kde/files/usr/share/plasma/look-and-feel/org.chamesle.desktop/contents/layouts/org.kde.plasma.desktop-layout.js b/tools/pkg/chamesle-kde/files/usr/share/plasma/look-and-feel/org.chamesle.desktop/contents/layouts/org.kde.plasma.desktop-layout.js @@ -0,0 +1,32 @@ +// the chamesle taskbar: start menu, pinned apps and open windows, tray and clock, like windows +var panel = new Panel +panel.location = "bottom" +panel.height = 2 * Math.ceil(gridUnit * 2.4 / 2) +panel.floating = true + +var kickoff = panel.addWidget("org.kde.plasma.kickoff") +kickoff.currentConfigGroup = ["General"] +kickoff.writeConfig("icon", "chamesle-start") + +var tasks = panel.addWidget("org.kde.plasma.icontasks") +tasks.currentConfigGroup = ["General"] +tasks.writeConfig("launchers", ["applications:org.kde.dolphin.desktop", "applications:firefox.desktop", + "applications:org.chamesle.Store.desktop", "applications:org.kde.konsole.desktop"]) + +panel.addWidget("org.kde.plasma.marginsseparator") +panel.addWidget("org.kde.plasma.systemtray") + +// 24-hour time with the date under it: 13:45 and 24 Oct 2026 +var clock = panel.addWidget("org.kde.plasma.digitalclock") +clock.currentConfigGroup = ["Appearance"] +clock.writeConfig("use24hFormat", 2) +clock.writeConfig("dateFormat", "custom") +clock.writeConfig("customDateFormat", "d MMM yyyy") + + +var desktop = desktopsForActivity(currentActivity())[0] +if (desktop) { + desktop.wallpaperPlugin = "org.kde.image" + desktop.currentConfigGroup = ["Wallpaper", "org.kde.image", "General"] + desktop.writeConfig("Image", "file:///usr/share/wallpapers/Chamesle/contents/images/3840x2160.jpg") +} diff --git a/tools/pkg/chamesle-kde/files/usr/share/plasma/look-and-feel/org.chamesle.desktop/metadata.json b/tools/pkg/chamesle-kde/files/usr/share/plasma/look-and-feel/org.chamesle.desktop/metadata.json @@ -0,0 +1,14 @@ +{ + "KPackageStructure": "Plasma/LookAndFeel", + "KPlugin": { + "Authors": [{ "Name": "Chamesle Linux" }], + "Description": "Breeze with a dark Windows-style taskbar, the Matterhorn and Inter", + "Id": "org.chamesle.desktop", + "License": "GPL-3.0-or-later", + "Name": "Chamesle", + "Version": "0.5.0", + "Website": "https://chamesle.org" + }, + "X-Plasma-MainScript": "defaults", + "X-Plasma-Inherit": "org.kde.breezetwilight.desktop" +} diff --git a/tools/pkg/chamesle-kde/files/usr/share/sddm/themes/chamesle/matterhorn-blur.jpg b/tools/pkg/chamesle-kde/files/usr/share/sddm/themes/chamesle/matterhorn-blur.jpg Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/sddm/themes/chamesle/theme.conf.user b/tools/pkg/chamesle-kde/files/usr/share/sddm/themes/chamesle/theme.conf.user @@ -0,0 +1,4 @@ +# the kde edition's sign-in screen has its desktop's wallpaper +[General] +background=/usr/share/wallpapers/Chamesle/contents/images/3840x2160.jpg +backgroundBlur=matterhorn-blur.jpg diff --git a/tools/pkg/chamesle-kde/files/usr/share/wallpapers/Chamesle/contents/images/3840x2160.jpg b/tools/pkg/chamesle-kde/files/usr/share/wallpapers/Chamesle/contents/images/3840x2160.jpg Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/wallpapers/Chamesle/contents/screenshot.jpg b/tools/pkg/chamesle-kde/files/usr/share/wallpapers/Chamesle/contents/screenshot.jpg Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/wallpapers/Chamesle/metadata.json b/tools/pkg/chamesle-kde/files/usr/share/wallpapers/Chamesle/metadata.json @@ -0,0 +1,9 @@ +{ + "KPlugin": { + "Authors": [{ "Name": "Sam Ferrara" }], + "Description": "The Matterhorn at sunset", + "Id": "Chamesle", + "License": "CC0-1.0", + "Name": "Matterhorn" + } +} diff --git a/tools/pkg/chamesle-kde/recipe b/tools/pkg/chamesle-kde/recipe @@ -0,0 +1,13 @@ +name=chamesle-kde +version=0.5.0 +rel=1 +desc="The Chamesle look for KDE Plasma: the Matterhorn, Breeze with a dark taskbar, Inter and the Chamesle start button" +url=https://chamesle.org +license=GPL-3.0-or-later +source= +makedeps="" +depends="chamesle-artwork plasma-desktop breeze-icons breeze-qt6 font-inter noto-fonts-ttf" + +build() { + cp -a . "$pkgdir/" +} diff --git a/tools/pkg/chamesle-plymouth/files/etc/dinit.d/recovery b/tools/pkg/chamesle-plymouth/files/etc/dinit.d/recovery @@ -0,0 +1,5 @@ +# what dinit starts when the system can't finish starting: the blue screen, then a command line +type = process +command = /usr/lib/chamesle/blue-screen +options = runs-on-console +restart = false diff --git a/tools/pkg/chamesle-plymouth/files/usr/lib/chamesle/blue-screen b/tools/pkg/chamesle-plymouth/files/usr/lib/chamesle/blue-screen @@ -0,0 +1,30 @@ +#!/bin/sh +# blue-screen [REASON]: the blue screen, for when the system can't finish starting. dinit runs it as its recovery +# service; without a reason it names the services that failed. any key gives a command line (sulogin asks for +# root's password, or lets you straight in when root is locked, as it is with sudo) +reason=$1 +if [ -z "$reason" ] && command -v dinitctl >/dev/null; then + failed=$(dinitctl list 2>/dev/null | sed -n 's/^[[][^]]*X[^]]*[]] *\([^ ]*\).*/\1/p' | tr '\n' ' ') + [ -n "$failed" ] && reason="What failed: ${failed% }" +fi +# the boot screen may be gone already, it goes when the desktop starts +if ! plymouth --ping 2>/dev/null; then + mkdir -p /run/plymouth + plymouthd --mode=boot --tty=/dev/tty1 2>/dev/null && plymouth show-splash +fi +if plymouth --ping 2>/dev/null; then + plymouth display-message --text=chamesle-error + [ -n "$reason" ] && plymouth display-message --text="$reason" + plymouth watch-keystroke >/dev/null 2>&1 + plymouth quit +fi +# the same in text, for the command line, or if there's no screen to draw on +clear 2>/dev/null +echo +echo ":( Chamesle couldn't finish starting." +[ -n "$reason" ] && echo " $reason" +echo +echo " 'dinitctl list' shows what's running and what failed, logs are in /var/log." +echo " Typing 'reboot' restarts. In the boot menu you can pick a snapshot from before the last update." +echo +exec sulogin --force diff --git a/tools/pkg/chamesle-plymouth/files/usr/lib/chamesle/init b/tools/pkg/chamesle-plymouth/files/usr/lib/chamesle/init @@ -0,0 +1,4 @@ +#!/bin/sh +# dinit, which starts the recovery service (the blue screen) on its own when the system can't finish starting, +# instead of asking on a console that's hidden behind the boot screen. the boot line has init=/usr/lib/chamesle/init +exec /usr/bin/dinit --auto-recovery "$@" diff --git a/tools/pkg/chamesle-plymouth/files/usr/share/plymouth/themes/chamesle/chamesle.script b/tools/pkg/chamesle-plymouth/files/usr/share/plymouth/themes/chamesle/chamesle.script @@ -21,6 +21,7 @@ spin_sprite.SetPosition(cx - spinner.GetWidth() / 2, spin_y, 2); angle = 0; fun refresh() { + if (blue) return; angle += 0.12; spin_sprite.SetImage(spinner.Rotate(angle)); } @@ -64,14 +65,55 @@ fun display_password(prompt, count) { } } -fun display_normal() { hide_password(); } +fun display_normal() { if (!blue) hide_password(); } Plymouth.SetDisplayPasswordFunction(display_password); Plymouth.SetDisplayNormalFunction(display_normal); +# the blue screen, when the system can't finish starting (/usr/lib/chamesle/blue-screen). the message +# "chamesle-error" turns it on, the next message is what went wrong. the same blue as the kernel's crash screen +blue = 0; +blue_sprites = []; +bx = Window.GetX() + Window.GetWidth() * 0.12; +by = Window.GetY() + Window.GetHeight() * 0.22; + +fun blue_line(i, text, size, y) { + if (text == "") return y; + t = Image.Text(text, 1, 1, 1, 1, "Inter " + size); + blue_sprites[i] = Sprite(t); + blue_sprites[i].SetPosition(bx, y, 10); + return y + t.GetHeight(); +} + +fun show_blue(reason) { + Window.SetBackgroundTopColor(0, 0, 0.667); + Window.SetBackgroundBottomColor(0, 0, 0.667); + logo_sprite.SetOpacity(0); + hide_password(); + spin_sprite.SetOpacity(0); + track_sprite.SetOpacity(0); + message_sprite.SetOpacity(0); + for (i = 0; i < 6; i++) if (blue_sprites[i]) blue_sprites[i].SetOpacity(0); + y = blue_line(0, ":(", "72", by); + y = blue_line(1, "Chamesle couldn't finish starting.", "22", y + 24); + y = blue_line(2, reason, "13", y + 16); + y = blue_line(3, "Press any key for a command line, to look into it or fix it.", "13", y + 36); + y = blue_line(4, "Or restart, and in the boot menu pick a snapshot from before the last update.", "13", y + 8); + y = blue_line(5, "Help: chamesle.org/docs", "13", y + 36); +} + # one line of text at the bottom for messages ("checking the disk" and the like) message_sprite = Sprite(); fun show_message(text) { + if (text == "chamesle-error") { + blue = 1; + show_blue(""); + return; + } + if (blue) { + show_blue(text); + return; + } m = Image.Text(text, 0.45, 0.48, 0.53, 1, "Inter 10"); message_sprite.SetImage(m); message_sprite.SetPosition(cx - m.GetWidth() / 2, Window.GetY() + Window.GetHeight() - 60, 5); diff --git a/tools/pkg/chamesle-plymouth/post-install b/tools/pkg/chamesle-plymouth/post-install @@ -0,0 +1,9 @@ +#!/bin/sh +# dinit through /usr/lib/chamesle/init, so it starts the blue screen on its own when the system can't finish +# starting. systems installed before 0.5 get it added to their boot line here +g=/etc/default/grub +if [ -f $g ] && [ -x /usr/bin/dinit ] && ! grep -q 'init=' $g; then + sed -i 's|^\(GRUB_CMDLINE_LINUX_DEFAULT="[^"]*\)"|\1 init=/usr/lib/chamesle/init"|' $g + [ -f /boot/grub/grub.cfg ] && grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1 +fi +exit 0 diff --git a/tools/pkg/chamesle-plymouth/post-upgrade b/tools/pkg/chamesle-plymouth/post-upgrade @@ -0,0 +1,9 @@ +#!/bin/sh +# dinit through /usr/lib/chamesle/init, so it starts the blue screen on its own when the system can't finish +# starting. systems installed before 0.5 get it added to their boot line here +g=/etc/default/grub +if [ -f $g ] && [ -x /usr/bin/dinit ] && ! grep -q 'init=' $g; then + sed -i 's|^\(GRUB_CMDLINE_LINUX_DEFAULT="[^"]*\)"|\1 init=/usr/lib/chamesle/init"|' $g + [ -f /boot/grub/grub.cfg ] && grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1 +fi +exit 0 diff --git a/tools/pkg/chamesle-plymouth/recipe b/tools/pkg/chamesle-plymouth/recipe @@ -1,12 +1,12 @@ name=chamesle-plymouth -version=0.7.0 -rel=1 -desc="The Chamesle boot screen: the logo with a spinner under it" +version=0.8.0 +rel=0 +desc="The Chamesle boot screen: the logo with a spinner under it, and a blue screen when the system can't start" url=https://chamesle.org license=GPL-3.0-or-later source= makedeps="" -depends="plymouth" +depends="plymouth util-linux dinit" build() { cp -a . "$pkgdir/" diff --git a/tools/pkg/chamesle-sddm/files/etc/sddm.conf.d/10-chamesle.conf b/tools/pkg/chamesle-sddm/files/etc/sddm.conf.d/10-chamesle.conf @@ -0,0 +1,10 @@ +[Theme] +Current=chamesle +CursorTheme=Adwaita + +[Users] +# real people only, and their pictures when they set one +MinimumUid=1000 +MaximumUid=60000 +RememberLastUser=true +RememberLastSession=true diff --git a/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/Main.qml b/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/Main.qml @@ -0,0 +1,459 @@ +// the chamesle sign-in screen: a lock screen with the clock first, any key or click slides it up to sign in, +// like windows does it. sddm hands us userModel, sessionModel, sddm (login, power) and config (theme.conf) +import QtQuick +import QtQuick.Controls + +Rectangle { + id: root + width: 1920 + height: 1080 + color: "#0b1a33" + + readonly property string fontName: config.font || "Inter" + // everything is drawn for 1080p and scaled to the screen + readonly property real s: Math.min(width / 1920, height / 1080) + // preview=signin in theme.conf starts on the sign-in box, for screenshots of it + property bool locked: config.preview !== "signin" + property int userIndex: userModel.lastIndex >= 0 ? userModel.lastIndex : 0 + property int sessionIndex: sessionModel.lastIndex >= 0 ? sessionModel.lastIndex : 0 + property string error: "" + + // the users, read through a repeater: sddm's model only gives its roles to delegates + Repeater { + id: users + model: userModel + delegate: Item { + property string login: model.name + property string realName: model.realName + property string icon: model.icon + property bool needsPassword: model.needsPassword + } + } + readonly property var user: users.count > 0 ? users.itemAt(Math.min(userIndex, users.count - 1)) : null + readonly property string userName: user ? user.login : "" + readonly property string shownName: user ? (user.realName || user.login) : "" + + function unlock() { + if (!locked) return + locked = false + password.forceActiveFocus() + } + function signIn() { + if (busy.running) return + error = "" + busy.running = true + sddm.login(userName, password.text, sessionIndex) + } + + Connections { + target: sddm + function onLoginFailed() { + busy.running = false + password.text = "" + error = "That password isn't right. Try again." + shake.restart() + password.forceActiveFocus() + } + function onLoginSucceeded() { busy.running = false } + } + + // both backgrounds stay loaded: the blurred one fades in under the sign-in box + Image { + anchors.fill: parent + source: config.background || "assets/background.jpg" + fillMode: Image.PreserveAspectCrop + asynchronous: false + } + Image { + anchors.fill: parent + source: config.backgroundBlur || "assets/background-blur.jpg" + fillMode: Image.PreserveAspectCrop + opacity: root.locked ? 0 : 1 + Behavior on opacity { NumberAnimation { duration: 350; easing.type: Easing.OutCubic } } + } + + // ---- the lock screen ---- + Item { + id: lock + width: parent.width + height: parent.height + y: root.locked ? 0 : -parent.height * 0.12 + opacity: root.locked ? 1 : 0 + visible: opacity > 0 + Behavior on y { NumberAnimation { duration: 350; easing.type: Easing.OutCubic } } + Behavior on opacity { NumberAnimation { duration: 250 } } + + Text { + id: time + anchors.horizontalCenter: parent.horizontalCenter + y: parent.height * 0.11 + color: "white" + font.family: root.fontName + font.pixelSize: 132 * root.s + font.weight: Font.DemiBold + text: Qt.formatTime(clock.now, config.clock === "12" ? "h:mm" : "HH:mm") + style: Text.Raised + styleColor: "#30000000" + } + Text { + anchors.horizontalCenter: parent.horizontalCenter + anchors.top: time.bottom + anchors.topMargin: 2 * root.s + color: "white" + font.family: root.fontName + font.pixelSize: 26 * root.s + font.weight: Font.Medium + text: Qt.formatDate(clock.now, "dddd, d MMMM") + } + } + Timer { + id: clock + property date now: new Date() + interval: 1000 + running: true + repeat: true + onTriggered: now = new Date() + } + + // ---- signing in ---- + Item { + id: signin + anchors.fill: parent + opacity: root.locked ? 0 : 1 + visible: opacity > 0 + Behavior on opacity { NumberAnimation { duration: 300 } } + + Column { + id: box + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + anchors.verticalCenterOffset: -40 * root.s + spacing: 18 * root.s + + // the picture people set, or the plain one + Item { + anchors.horizontalCenter: parent.horizontalCenter + width: 176 * root.s + height: width + Image { + id: face + anchors.fill: parent + source: root.user && root.user.icon ? root.user.icon : "assets/user.svg" + sourceSize: Qt.size(width * 2, height * 2) + fillMode: Image.PreserveAspectCrop + visible: false + onStatusChanged: if (status === Image.Error) source = "assets/user.svg" + } + // round crop without shaders: works on machines with no 3d acceleration too + Canvas { + id: round + anchors.fill: parent + property var img: face.source + onImgChanged: { loadImage(img); requestPaint() } + onImageLoaded: requestPaint() + onPaint: { + var c = getContext("2d") + c.reset() + c.beginPath() + c.arc(width / 2, height / 2, width / 2, 0, 2 * Math.PI) + c.closePath() + c.clip() + if (isImageLoaded(img)) c.drawImage(img, 0, 0, width, height) + else { c.fillStyle = "#e6e9ee"; c.fill() } + } + } + } + + Text { + anchors.horizontalCenter: parent.horizontalCenter + color: "white" + font.family: root.fontName + font.pixelSize: 30 * root.s + font.weight: Font.DemiBold + text: root.shownName + } + + // the password box, with the arrow inside it like windows + Item { + id: field + anchors.horizontalCenter: parent.horizontalCenter + width: 320 * root.s + height: 40 * root.s + visible: !root.user || root.user.needsPassword + SequentialAnimation { + id: shake + NumberAnimation { target: field; property: "anchors.horizontalCenterOffset"; to: -12; duration: 50 } + NumberAnimation { target: field; property: "anchors.horizontalCenterOffset"; to: 12; duration: 70 } + NumberAnimation { target: field; property: "anchors.horizontalCenterOffset"; to: -6; duration: 60 } + NumberAnimation { target: field; property: "anchors.horizontalCenterOffset"; to: 0; duration: 50 } + } + Rectangle { + anchors.fill: parent + radius: 6 * root.s + color: password.activeFocus ? "#a0101828" : "#80101828" + border.color: "#40ffffff" + border.width: 1 + Rectangle { // the accent line under the box when it's active + anchors.bottom: parent.bottom + anchors.horizontalCenter: parent.horizontalCenter + width: parent.width - 2 * parent.radius + height: 2 + color: "#4f9dff" + visible: password.activeFocus + } + } + TextInput { + id: password + anchors.left: parent.left + anchors.right: reveal.left + anchors.leftMargin: 14 * root.s + anchors.verticalCenter: parent.verticalCenter + color: "white" + font.family: root.fontName + font.pixelSize: 17 * root.s + echoMode: reveal.pressed ? TextInput.Normal : TextInput.Password + passwordCharacter: "•" + clip: true + selectByMouse: true + selectionColor: "#4f9dff" + onAccepted: root.signIn() + onTextChanged: if (text.length) root.error = "" + Keys.onEscapePressed: { text = ""; root.locked = true } + Text { + anchors.verticalCenter: parent.verticalCenter + text: "Password" + color: "#c8ffffff" + font: password.font + visible: !password.text && !password.preeditText + } + } + MouseArea { + id: reveal + anchors.right: go.left + anchors.verticalCenter: parent.verticalCenter + width: 32 * root.s + height: parent.height + visible: password.text.length > 0 + cursorShape: Qt.PointingHandCursor + Image { + anchors.centerIn: parent + source: "assets/eye.svg" + width: 18 * root.s + height: width + sourceSize: Qt.size(width * 2, height * 2) + opacity: reveal.pressed ? 1 : 0.7 + } + } + MouseArea { + id: go + anchors.right: parent.right + anchors.rightMargin: 4 * root.s + anchors.verticalCenter: parent.verticalCenter + width: 32 * root.s + height: 32 * root.s + cursorShape: Qt.PointingHandCursor + onClicked: root.signIn() + Rectangle { + anchors.fill: parent + radius: 5 * root.s + color: go.pressed ? "#3a7fe0" : (go.containsMouse ? "#4f9dff" : "#30ffffff") + } + hoverEnabled: true + Image { + anchors.centerIn: parent + source: "assets/arrow.svg" + width: 18 * root.s + height: width + sourceSize: Qt.size(width * 2, height * 2) + visible: !busy.running + } + BusyIndicator { + id: busy + anchors.centerIn: parent + width: 22 * root.s + height: width + running: false + visible: running + } + } + } + + // no password on this account (autologin users): just a button + Rectangle { + anchors.horizontalCenter: parent.horizontalCenter + visible: root.user && !root.user.needsPassword + width: 160 * root.s + height: 40 * root.s + radius: 6 * root.s + color: plain.pressed ? "#3a7fe0" : "#4f9dff" + Text { + anchors.centerIn: parent + text: "Sign in" + color: "white" + font.family: root.fontName + font.pixelSize: 17 * root.s + font.weight: Font.Medium + } + MouseArea { id: plain; anchors.fill: parent; onClicked: root.signIn() } + } + + Text { + anchors.horizontalCenter: parent.horizontalCenter + color: "white" + font.family: root.fontName + font.pixelSize: 15 * root.s + text: root.error || (keyboard.capsLock ? "Caps Lock is on" : " ") + opacity: text.trim() ? 1 : 0 + } + } + + // other people on this computer, bottom left + Column { + anchors.left: parent.left + anchors.bottom: parent.bottom + anchors.margins: 28 * root.s + spacing: 4 * root.s + visible: users.count > 1 + Repeater { + model: userModel + delegate: Rectangle { + width: 260 * root.s + height: 52 * root.s + radius: 6 * root.s + color: index === root.userIndex ? "#38ffffff" : (pick.containsMouse ? "#20ffffff" : "transparent") + Row { + anchors.verticalCenter: parent.verticalCenter + anchors.left: parent.left + anchors.leftMargin: 10 * root.s + spacing: 12 * root.s + Canvas { + width: 34 * root.s + height: width + property string img: model.icon || "assets/user.svg" + Component.onCompleted: loadImage(img) + onImageLoaded: requestPaint() + onPaint: { + var c = getContext("2d") + c.reset(); c.beginPath() + c.arc(width / 2, height / 2, width / 2, 0, 2 * Math.PI) + c.closePath(); c.clip() + if (isImageLoaded(img)) c.drawImage(img, 0, 0, width, height) + else { c.fillStyle = "#e6e9ee"; c.fill() } + } + } + Text { + anchors.verticalCenter: parent.verticalCenter + text: model.realName || model.name + color: "white" + font.family: root.fontName + font.pixelSize: 16 * root.s + } + } + MouseArea { + id: pick + anchors.fill: parent + hoverEnabled: true + onClicked: { root.userIndex = index; password.text = ""; root.error = ""; password.forceActiveFocus() } + } + } + } + } + } + + // bottom right on both screens: which desktop, and power + Row { + anchors.right: parent.right + anchors.bottom: parent.bottom + anchors.margins: 24 * root.s + spacing: 6 * root.s + + Repeater { + id: sessions + model: sessionModel + delegate: Item { property string label: model.name } + } + Corner { + visible: sessions.count > 1 + icon: "assets/desktop.svg" + label: sessions.count ? sessions.itemAt(Math.min(root.sessionIndex, sessions.count - 1)).label : "" + onClicked: sessionMenu.open() + Menu { + id: sessionMenu + y: -height - 8 + Repeater { + model: sessionModel + MenuItem { + text: model.name + checkable: true + checked: index === root.sessionIndex + onTriggered: root.sessionIndex = index + } + } + } + } + Corner { + icon: "assets/power.svg" + onClicked: powerMenu.open() + Menu { + id: powerMenu + y: -height - 8 + MenuItem { text: "Sleep"; enabled: sddm.canSuspend; onTriggered: sddm.suspend() } + MenuItem { text: "Shut down"; enabled: sddm.canPowerOff; onTriggered: sddm.powerOff() } + MenuItem { text: "Restart"; enabled: sddm.canReboot; onTriggered: sddm.reboot() } + } + } + } + + component Corner: MouseArea { + id: corner + property string icon + property string label: "" + width: label ? labelText.implicitWidth + 56 * root.s : 44 * root.s + height: 44 * root.s + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + Rectangle { + anchors.fill: parent + radius: 6 * root.s + color: corner.pressed ? "#40ffffff" : (corner.containsMouse ? "#28ffffff" : "transparent") + } + Row { + anchors.centerIn: parent + spacing: 8 * root.s + Image { + anchors.verticalCenter: parent.verticalCenter + source: corner.icon + width: 24 * root.s + height: width + sourceSize: Qt.size(width * 2, height * 2) + } + Text { + id: labelText + anchors.verticalCenter: parent.verticalCenter + visible: corner.label !== "" + text: corner.label + color: "white" + font.family: root.fontName + font.pixelSize: 15 * root.s + } + } + } + + // the lock screen goes on any key or click + MouseArea { + anchors.fill: parent + enabled: root.locked + visible: root.locked + onClicked: root.unlock() + } + focus: true + Keys.onPressed: function (event) { + if (root.locked) { + root.unlock() + // the first letter typed goes into the password, like windows + if (event.text && event.text.trim() !== "" && event.key !== Qt.Key_Space) password.insert(0, event.text) + event.accepted = true + } + } + Component.onCompleted: locked ? forceActiveFocus() : password.forceActiveFocus() +} diff --git a/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/arrow.svg b/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/arrow.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M13 6l6 6-6 6"/></svg> diff --git a/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/background-blur.jpg b/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/background-blur.jpg Binary files differ. diff --git a/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/background.jpg b/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/background.jpg Binary files differ. diff --git a/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/desktop.svg b/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/desktop.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="1.6" stroke-linejoin="round"><rect x="3" y="4.5" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16.5V20" stroke-linecap="round"/></svg> diff --git a/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/eye.svg b/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/eye.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="1.6"><path d="M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z"/><circle cx="12" cy="12" r="3"/></svg> diff --git a/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/power.svg b/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/power.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="1.8" stroke-linecap="round"><path d="M12 3v8"/><path d="M6.6 6.6a7.5 7.5 0 1 0 10.8 0"/></svg> diff --git a/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/user.svg b/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/assets/user.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96"><circle cx="48" cy="48" r="48" fill="#e6e9ee"/><circle cx="48" cy="38" r="16" fill="#8a93a3"/><path d="M18 80c4-15 16-23 30-23s26 8 30 23a46 46 0 0 1-60 0z" fill="#8a93a3"/></svg> diff --git a/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/metadata.desktop b/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/metadata.desktop @@ -0,0 +1,11 @@ +[SddmGreeterTheme] +Name=Chamesle +Description=The Chamesle sign-in screen +Author=Chamesle Linux +License=GPL-3.0-or-later +Type=sddm-theme +Version=0.5.0 +Website=https://chamesle.org +MainScript=Main.qml +ConfigFile=theme.conf +QtVersion=6 diff --git a/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/theme.conf b/tools/pkg/chamesle-sddm/files/usr/share/sddm/themes/chamesle/theme.conf @@ -0,0 +1,6 @@ +[General] +background=assets/background.jpg +backgroundBlur=assets/background-blur.jpg +font=Inter +# 24 for 13:45, 12 for 1:45 PM +clock=24 diff --git a/tools/pkg/chamesle-sddm/recipe b/tools/pkg/chamesle-sddm/recipe @@ -0,0 +1,14 @@ +name=chamesle-sddm +version=0.5.0 +rel=0 +desc="The Chamesle sign-in screen: a lock screen with the clock, then your picture and password, like Windows" +url=https://chamesle.org +license=GPL-3.0-or-later +source= +makedeps="" +# the background is "Top of Atmosphere", NASA Earth Observatory (ISS Expedition 13, 2006), public domain +depends="sddm font-inter qt6-svg" + +build() { + cp -a . "$pkgdir/" +}