Overview
When the password is wrong on the KDE 5 lock screen, the input field shakes left and right.
Solutions
Adjust animation speed
- Set animation speed to
Instant - Pros: simplest
- Cons: disables other animations
Modify the system theme
- Apply only the remove animation change to
org.breeze.desktop - Pros: simple
- Cons: changes global settings
Create a user theme
- Pros: does not change global settings
- Cons: complex and requires copying many directories
Fix
Copy the original theme
$ mkdir -p ~/.local/share/plasma/look-and-feel/
$ cd ~/.local/share/plasma/look-and-feel/
$ cp -R /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/ ./org.scarf.breeze.desktop
$ cp -R /usr/share/plasma/look-and-feel/org.kde.breezetwilight.desktop/ ./org.scarf.breezetwilight.desktop
Remove animation from theme
$ rm -r scarf.breeze.desktop/contents/animation
$ rm -r scarf.breezetwilight.desktop/contents/animation
diff --git a/org.scarf.breeze.desktop/contents/lockscreen/LockScreenUi.qml b/org.scarf.breeze.desktop/contents/lockscreen/LockScreenUi.qml
index c39cdb6..c23a95b 100644
--- a/org.scarf.breeze.desktop/contents/lockscreen/LockScreenUi.qml
+++ b/org.scarf.breeze.desktop/contents/lockscreen/LockScreenUi.qml
@@ -16,7 +16,6 @@ import org.kde.plasma.workspace.components 2.0 as PW
import org.kde.plasma.private.sessions 2.0
import "../components"
-import "../components/animation"
PlasmaCore.ColorScope {
@@ -37,7 +36,6 @@ PlasmaCore.ColorScope {
root.notification += i18nd("plasma_lookandfeel_org.kde.lookandfeel","Unlocking failed");
graceLockTimer.restart();
notificationRemoveTimer.restart();
- rejectPasswordAnimation.start();
lockScreenUi.hadPrompt = false;
}
@@ -108,11 +106,6 @@ PlasmaCore.ColorScope {
visible: false
}
- RejectPasswordAnimation {
- id: rejectPasswordAnimation
- target: mainBlock
- }
-
MouseArea {
id: lockScreenRoot
Copy contents/lockscreen to breezetwilight
$ cp -R org.scarf.breeze.desktop/contents/lockscreen/ org.scarf.breezetwilight.desktop/contents/lockscreen/
$ cp -R org.scarf.breeze.desktop/contents/components/ org.scarf.breezetwilight.desktop/contents/components/
$ cp -R org.scarf.breeze.desktop/contents/osd/ org.scarf.breezetwilight.desktop/contents/osd/
- It seems
contents/defaultscannot point to another theme's lockscreen
Update QML version
diff --git a/32c6e6e b/61f84b6
index 32c6e6e..61f84b6 100644
--- a/32c6e6e
+++ b/61f84b6
@@ -141,5 +141,6 @@
"Version": "2.0",
"Website": "https://www.kde.org"
},
+ "X-Plasma-APIVersion": "2",
"X-Plasma-MainScript": "defaults"
}
- https://old.reddit.com/r/kde/comments/ylp820/how_to_debug_lock_screen_theme_qml/
- https://invent.kde.org/plasma/kscreenlocker/-/merge_requests/59
Apply
Confirm the theme is installed
$ lookandfeeltool --list
org.scarf.breeze.desktop
org.scarf.breezetwilight.desktop
org.kde.breeze.desktop
org.kde.breezedark.desktop
org.kde.breezetwilight.desktop
org.kubuntu.desktop
Test
$ /usr/lib/x86_64-linux-gnu/libexec/kscreenlocker_greet --testing --theme=org.scarf.breezetwilight.desktop
Use
$ lookandfeeltool --apply org.scarf.breezetwilight.desktop