How to Customize the Lock Screen on KDE

There’s a popular saying that “if there’s something about KDE you don’t like, there’s probably a button that lets you change it“, and the default lock screen might be one of the things you’d like to change. Whether you’re an Android, Windows or Mac OS X user, you’re probably familiar with the lock screen feature. It’s a simple and quick way to protect your computer from unauthorized access while you’re temporarily away from the keyboard.

KDE offers three types of lock screen: simple locker, Desktop Widgets, and screensaver. The System Settings dialog lets you perform basic customization, but there are tricks and tweaks that can be achieved by modifying configuration files. This guide is based on KDE 4.13.2, so your settings might look very different if you’re using a KDE version older than 4.10.


You can access the KDE lock screen feature either from the right-click menu on your desktop, from the Plasma Toolbox on the desktop (by clicking the “cashew” icon), or by pressing the designated keyboard shortcut. The settings dialog can be found in “System Settings -> Display and Monitor -> Screen Locker”. Here you can select the type of lock screen you want to use.


Simple Locker

By default, simple locker’s background is either a blank screen or the default wallpaper of your current Plasma theme. It doesn’t allow for any changes, as the developers probably assumed that users wouldn’t need to modify it. However, the fact that they reported this missing feature as a bug indicates the opposite. Still, you can customize the background and the greeting message of your simple locker by editing a few files.

To change the background, find an image you would like to use, give it a simple name (for example, “locked.jpg”) and place it in the directory as stated below. Note that this requires root privileges, and this change will be visible to all users of the system.

Now open the configuration file with your preferred text editor,

and find the line beginning with Image {. Edit the part after source: by replacing theme.wallpaperPathForSize(parent.width, parent.height) with the name of the image you previously copied. Make sure to enclose the filename in quotation marks like this: “locked.jpg.” Save the changes and the result will be visible the next time you lock your screen.


To add a custom login message, open the following file,

and find the line containing PlasmaComponents.Label.


Insert your message in quotation marks after text: and save changes.


It’s important to remember that these changes will be overwritten when you update the package kdebase-workspace; that is, when you upgrade to a new KDE version.

Desktop Widgets

This type of lock screen functions much like the Plasma Widget Dashboard – it’s a blank space on which you can add widgets (plasmoids) like clocks, a calendar or sticky notes. To add widgets, click the “Configure” button next to Desktop Widgets in “System Settings -> Display and Monitor -> Screen Locker”. You’ll be transferred to editing mode, where you can select actions from the “cashew” menu in the corner.


Choosing “Settings” opens a dialog where you can configure the background. It can be a static image, an animation, a slideshow …


The “Add Widgets” option activates a toolbar from which you can drag widgets onto the lock screen. For security reasons, the selection of available widgets is very limited, and due to a bug, they can’t be resized by drag-and-drop like on the Plasma Dashboard. However, you can change their size in the configuration file.


First add the widgets you want to use, and exit the editing mode by clicking “Leave Screensaver” in the cashew menu. Then open the file:

(Depending on your distribution, you might have to replace “.kde” with “.kde4” in the path above.)

Every widget has a “geometry” property with four numbers determining its size and position. The first number is the horizontal offset from the top left corner, the second is the vertical offset, and the last two numbers are the width and height of the widget, respectively. All you have to do is modify these values for the widget you wish to resize and save the changes.


KDE offers several types of screensavers, some of which can be customized by clicking the “Setup” button. You can install additional screensavers from the repositories of your distribution.


If you want the screensaver to activate after a certain amount of time, tick the “Start automatically after” box. In case your screensaver doesn’t start, check the “System Settings -> Desktop Effects -> Advanced” dialog and make sure the “Suspend desktop effects for fullscreen windows” option is disabled.

What If I Don’t Want the Lock Screen?

It’s possible to disable the lock screen on KDE. You can open the /home/$USERNAME/.kde/share/config/kscreensaverrc file and add:

Afterwards, check the following settings:

  • in “System Settings -> Display and Monitors -> Screen Locker.” “Start automatically after” should be disabled.
  • in “System Settings -> Power Management -> Energy Saving.” None of the options should have “Lock screen” selected.
  • in “System Settings -> Power Management -> Advanced Settings.” “Lock screen on resume” should be disabled.

What About Plasma 5?

The latest KDE version, Plasma 5, is still not as widely used as the 4.1x series, and its lock screen component has been completely redesigned. It no longer supports the screensaver or the Desktop Widgets mode, leaving only the simple option with rudimentary settings.


Have you tried Plasma 5? If you have any customization tips for the new KDE lock screen, please share them in the comments below.

Image credit: Teaser image source, Featured image source

Ivana Isadora Devcic Ivana Isadora Devcic

Ivana Isadora is a freelance writer, translator and copyeditor fluent in English, Croatian and Swedish. She's a Linux user & KDE fan interested in startups, productivity and personal branding. Find out how to connect with Ivana here.


  1. I have found a way to change the lock screen background in KDE Plasma 5.4; though it is a bit of a workaround. You see the system settings option would let me set the image I wanted so I converted the image I wanted to a .png file (which the default is) and then via Konsole typed
    sudo dolphin
    to run dolphin as root and went to /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/artwork/
    which is the location of the default image named background.png. I then put in my desired background (now with the same name) replacing the old one and presto image changed. This method also works for the login screen image but that file is located in (for sddm window manager) /usr/share/sddm/themes/breeze/components/artwork/ with the name also being background.png. As should be obvious if you are not using breeze then look under your theme (oxygen, etc). Have a nice day

  2. Thanks for the info, i have been trying to modify the lock screen to match my login screen, this helps…
    Any ideas on how to change the dialog box look?, i have a custom xml file theme for kdm login dialog, i would like to use this on the lock screen dialog as well. not sure how qml works??

    On another note i recently discovered Conky, what a great tool, way better then the default kde widgets…i was thinking it would be great to incorporate a conky setup into the lock screen, much like the kde widget screen locker, but not! Any thoughts?
    I’m running Kubuntu 14.04, kde 4.13

  3. I was looking for the method of customizing the idle time-out for locking the screen in KDE PLASMA 5 desktop on my Debian Stretch and found an answer to look in System Settings and the Display section. Apparently I cannot find anything like System Settings but I found kcmshell5 command which lets tweaking many of the settings. “kcmshell5 –list” will list all available modules and “kcmshell5 screenlocker” was the settings dialog I was looking for. There is also kcmshell4 but for earlier release.

Comments are closed.