KDE 잠금화면 흔들림 제거

개요

KDE 5 잠금화면에서 비밀번호가 틀리면 입력창이 좌우로 요동침

해결 방법

애니메이션 속도 조절

image

시스템 테마 수정

사용자 테마 생성

해결

기존 테마 복사

$ 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

테마에서 애니메이션 제거

$ 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

breezetwilightcontents/lockscreen 복사

$ 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/

QML 버전 업데이트

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"
 }

적용

신규 테마 추가 여부 확인

전역 테마 - 시스템 설정

$ 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

테스트

$ /usr/lib/x86_64-linux-gnu/libexec/kscreenlocker_greet --testing --theme=org.scarf.breezetwilight.desktop

사용

$ lookandfeeltool --apply org.scarf.breezetwilight.desktop

참고