summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-10-14 01:18:54 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-10-14 01:18:54 +1100
commit73aa3e32dee1ac425e352f2a2f90f3a05316077d (patch)
treee7802cb913225714332a9ef8807ae5dee4210697 /services
parentutilities/record: fix recording list months (diff)
downloadcaelestia-shell-73aa3e32dee1ac425e352f2a2f90f3a05316077d.tar.gz
caelestia-shell-73aa3e32dee1ac425e352f2a2f90f3a05316077d.tar.bz2
caelestia-shell-73aa3e32dee1ac425e352f2a2f90f3a05316077d.zip
toasts: add toast for kb layout change
Closes #688
Diffstat (limited to 'services')
-rw-r--r--services/Hypr.qml9
1 files changed, 9 insertions, 0 deletions
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