Added new kde-plasma-mobile environment for trixie, with sddm support for touchscreen by default; changed armbian to only write armbian sddm config if doesn't exist;

This commit is contained in:
Chris Wang 2025-10-04 23:24:20 -04:00 committed by Igor
parent ebe77dc278
commit 1bb20a36f9
7 changed files with 82 additions and 6 deletions

View File

@ -0,0 +1 @@
arm64, amd64

View File

@ -0,0 +1,28 @@
# install sddm greeter theme
mkdir -pv "${destination}"/usr/share/sddm/themes
cp -Rv "${SRC}"/packages/blobs/desktop/sddm/themes/plasma-chili/ "${destination}"/usr/share/sddm/themes
# install default desktop settings
mkdir -pv "${destination}"/etc/skel
cp -Rv "${SRC}"/packages/blobs/desktop/skel/. "${destination}"/etc/skel
# install wallpapers
mkdir -pv "${destination}"/usr/share/backgrounds/armbian/
cp -v "${SRC}"/packages/blobs/desktop/desktop-wallpapers/*.jpg "${destination}"/usr/share/backgrounds/armbian
# install logo for login screen
mkdir -pv "${destination}"/usr/share/pixmaps/armbian
cp -v "${SRC}"/packages/blobs/desktop/icons/armbian.png "${destination}"/usr/share/pixmaps/armbian
# set default wallpaper
#echo "
#dbus-send --session --dest=org.kde.plasmashell --type=method_call /PlasmaShell org.kde.PlasmaShell.evaluateScript 'string:
#var Desktops = desktops();
#for (i=0;i<Desktops.length;i++) {
# d = Desktops[i];
# d.wallpaperPlugin = \"org.kde.image\";
# d.currentConfigGroup = Array(\"Wallpaper\",
# \"org.kde.image\",
# \"General\");
# d.writeConfig(\"Image\", \"file:///usr/share/backgrounds/armbian/armbian03-Dre0x-Minum-dark-3840x2160.jpg\");
#}'" > "${destination}"/usr/share/backgrounds/armbian/set-armbian-wallpaper.sh

View File

@ -0,0 +1,19 @@
plasma-mobile-full
kde-full
task-kde-desktop
kde-config-screenlocker
qtwayland5
konsole
qt6-virtualkeyboard-plugin
maliit-framework
maliit-keyboard
xinput
sddm-theme-breeze
pulseaudio
gstreamer1.0-pulseaudio
pamix
pasystray
pavucontrol
pavucontrol-qt
pulseaudio-module-bluetooth
chromium

View File

@ -0,0 +1,23 @@
# overwrite stock lightdm greeter configuration
#if [ -d /etc/armbian/lightdm ]; then cp -R /etc/armbian/lightdm /etc/; fi
#if [ -f /etc/lightdm/slick-greeter.conf ]; then sed -i 's/armbian03-Dre0x-Minum-dark-blurred-3840x2160.jpg/armbian-4k-black-psycho-gauss.jpg/g' /etc/lightdm/slick-greeter.conf; fi
# Disable Pulseaudio timer scheduling which does not work with sndhdmi driver
if [ -f /etc/pulse/default.pa ]; then sed "s/load-module module-udev-detect$/& tsched=0/g" -i /etc/pulse/default.pa; fi
# enable pulse audio
systemctl --user enable pulseaudio
systemctl --user restart pulseaudio
#configure sddm
sudo mkdir -p /etc/sddm.conf.d
sudo cat <<- EOF > /etc/sddm.conf.d/armbian.conf
[Theme]
Current=breeze
[General]
InputMethod=qtvirtualkeyboard
[X11]
DisplayCommand=/usr/share/sddm/scripts/Xsetup
[Wayland]
CompositorCommand=weston --shell=kiosk # @TODO figure out how to rotate with weston and wayland
EOF

View File

@ -0,0 +1 @@
csc

View File

@ -955,12 +955,15 @@ if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then
# create default sddm config
mkdir -p /etc/sddm.conf.d
cat <<- EOF > /etc/sddm.conf.d/armbian.conf
[Theme]
Current=breeze
[General]
InputMethod=none
EOF
if [ ! -e "/etc/sddm.conf.d/armbian.conf" ]; then
cat <<- EOF > /etc/sddm.conf.d/armbian.conf
[Theme]
Current=breeze
[General]
InputMethod=none
EOF
fi
# 1st run goes without login
cat <<- EOF > /etc/sddm.conf.d/autologin.conf