Disable media controls on lockscreen in KDE

2019-12-12

Problem:

When VLC, Google Chrome, Firefox or any other app that can play media is launched, KDE draws media controls (play/pause, next, previous buttons + album art) on lock screen. I don’t like it.

Solution:

100% works on Kubuntu 18.04.

Open up terminal and run the following:

kwriteconfig5 --file kscreenlockerrc --group Greeter --group LnF --group General --key showMediaControls --type bool false

This command will append the following lines to ~/.config/kscreenlockerrc

[Greeter][LnF][General]
showMediaControls=false