This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Set system wide default lock screen background image

Tags: None
(comma "," separated)
kadap
Registered Member
Posts
2
Karma
0
Hello everyone,

I need to set up multiple clients and I'd like to change the lockscreen's default blue background to an image.
What I found is the default blue in /usr/share/plasma/wallpapers/org.kde.color/contents/config/main.xml but I don't know how to set org.kde.image as the default background. Selecting the background image on every client via GUI is not possible - there are ~60 clients I need to set up and I don't want to change the settings manually on every system.

Thanks in advance!
User avatar
Rog131
Registered Member
Posts
828
Karma
10
Tinkering with the Plasma 5.10.4


Earlier: /etc/kde4rc equivalent - viewtopic.php?f=289&t=128131

=>

Making /etc/X11/Xsession.d/my-setings:

Code: Select all
if [ -z "$XDG_CONFIG_DIRS" ]; then
  XDG_CONFIG_DIRS=/etc/xdg
fi 
export XDG_CONFIG_DIRS=/usr/share/my-settings/:$XDG_CONFIG_DIRS


Making a simple screen locker configuration file - /usr/share/my-settings/kscreenlockerrc:
Code: Select all
[$Version]
update_info=kscreenlocker.upd:0.1-autolock

[Greeter]
WallpaperPlugin=org.kde.image


Note !
Only setting the wallpaper plugin.

Reboot and testing:

Making a new user and starting a session as the new user.
Locking the screen -> The locker background is the desktop theme wallpaper.

With the Breeze 5.10.4 - /usr/share/plasma/desktoptheme/default/metadata.desktop it is:

Code: Select all
.
.
.
[Wallpaper]
defaultWallpaperTheme=Next
defaultFileSuffix=.png
defaultWidth=1920
defaultHeight=1080
.
.
.



More notes:
This is only setting the new user lock screen background.
The old user background is only set if the $HOME/.config/kscreenlockerrc is removed.
The user can change the lock screen wallpaper.
kadap
Registered Member
Posts
2
Karma
0
Thank you very much, this worked! But due to the fact that I'm using sddm I had to add the script to /etc/sddm/Xsession. Otherwise it wasn't executed.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]