diff options
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | config/UtilitiesConfig.qml | 1 | ||||
| -rw-r--r-- | services/Hypr.qml | 9 |
3 files changed, 11 insertions, 0 deletions
@@ -588,6 +588,7 @@ default, you must create it manually. "configLoaded": true, "dndChanged": true, "gameModeChanged": true, + "kbLayoutChanged": true, "numLockChanged": true } } diff --git a/config/UtilitiesConfig.qml b/config/UtilitiesConfig.qml index 2271307..3094efa 100644 --- a/config/UtilitiesConfig.qml +++ b/config/UtilitiesConfig.qml @@ -21,5 +21,6 @@ JsonObject { property bool audioInputChanged: true property bool capsLockChanged: true property bool numLockChanged: true + property bool kbLayoutChanged: true } } diff --git a/services/Hypr.qml b/services/Hypr.qml index 55ddb19..f537792 100644 --- a/services/Hypr.qml +++ b/services/Hypr.qml @@ -33,6 +33,8 @@ Singleton { readonly property alias options: extras.options readonly property alias devices: extras.devices + property bool hadKeyboard + signal configReloaded function dispatch(request: string): void { @@ -69,6 +71,13 @@ Singleton { Toaster.toast(qsTr("Num lock disabled"), qsTr("Num lock is currently disabled"), "timer_1"); } + onKbLayoutFullChanged: { + if (hadKeyboard && Config.utilities.toasts.kbLayoutChanged) + Toaster.toast(qsTr("Keyboard layout changed"), qsTr("Layout changed to: %1").arg(kbLayoutFull), "keyboard"); + + hadKeyboard = !!keyboard; + } + Connections { target: Hyprland |