Solved question about change sddm welcome wallpaper in freebsd14.2 ?

dear all:
i have used sddm for dm in freebsd14.2 . the sddm default welcome wallpaper was a blue picture, i want to change it . but search more , not working, please help me . thanks.
 
the sddm default welcome wallpaper was a blue picture, i want to change it . but search more , not working
Try sddm.conf(5)

/usr/local/etc/sddm.conf
Code:
[Theme]
Current=elarun
#Current=maldive
x11/sddm package comes with those two themes shown in the example above beside the built-in. External themes can be put in a directory, the path set in sddm.conf by ThemeDir=.

There is even x11-themes/sddm-freebsd-black-theme in ports/packages.
 
Jumping in here as I’m also getting to get this working.

I have the following, but it is not applying. I also installed the “black” theme package.

Code:
[Theme]
Current=sddm-freebsd-black-theme
 
Jumping in here as I’m also getting to get this working.

I have the following, but it is not applying. I also installed the “black” theme package.

Code:
[Theme]
Current=sddm-freebsd-black-theme
Maybe try setting themedir variable to where that theme is located at?
 
Dear all :
i know how to change theme . my question was how to change the sddm default welcome wallpaper.. thanks.
 
It’s working for all themes except the “sddm-freebsd-black-theme”.
x11-themes/sddm-freebsd-black-theme is broken, probably due to change from qt5 to qt6.

If you apply attached patch it should work as intended:
Code:
# cd /usr/local/share/sddm/themes/sddm-freebsd-black-theme

# cp Main.qml  Main.qml.orig

# patch < /path/to/sddm-fbsd-black.Main.qml.diff.txt
A package upgrade will overwrite the patched version. Best course of action would be a PR.

Disclaimer: I actually don't know if the sddm theme Main.qlm are correctly modified. The modifications are made after comparing different theme files (elarun, maldives, maya) from /usr/local/share/sddm/themes/.
 

Attachments

my question was how to change the sddm default welcome wallpaper.
If you mean the built-in, that one is not easy to solve (as far I could find out).

A SDDM themes original background can be overridden with a "background" variable, but that doesn't have an effect on all themes.

For example, taking here the themes installed by x11/sddm:
Code:
# pwd
/usr/local/share/sddm/themes

# ls
elarun
maldives
maya

A specific theme background can be defined by <theme_name>/theme.conf.user (or from present theme.conf):
Code:
[General]
background=/path/to/background
With this method, "elarun" and "maldives" change background, "maya" does not.

In case of the built-in (qrc) theme I had the idea to extract it from the sddm source package and place it under the /usr/local/share/sddm/themes directory. It can be also cloned from the projects Github repository:

But "background" variable in theme.conf.user has no effect here.

If you insist on the built-in theme, I would try to build x11/sddm from ports, replacing background.png (after make extract replace work/.../background.png).
 
Back
Top