Created
February 15, 2026 20:45
-
-
Save nekromoff/4d31c32be9fa06bf9a4288719f4c0d41 to your computer and use it in GitHub Desktop.
KDE Plasma lockscreen script - always switch keyboard to English (US) on locking for easy password prompts for multilingual keyboards
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| dbus-monitor --profile --session "type='signal',interface='org.kde.screensaver',path='/ScreenSaver',member='AboutToLock'" | | |
| while read -r line; do | |
| qdbus6 org.kde.keyboard /Layouts setLayout 0 | |
| #echo "switching" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment