1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

keyboard/hyprland: sync keyboard layout with event

This commit is contained in:
bbedward
2025-11-01 10:35:22 -04:00
parent e4371ea4fc
commit e1cdf4ed50
2 changed files with 18 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
import QtQuick
import QtQuick.Controls
import Quickshell
import Quickshell.Hyprland
import Quickshell.Io
import qs.Common
import qs.Modules.Plugins
@@ -78,6 +79,16 @@ BasePill {
root.hyprlandKeyboard,
"next"
])
}
}
}
Connections {
target: CompositorService.isHyprland ? Hyprland : null
enabled: CompositorService.isHyprland
function onRawEvent(event) {
if (event.name === "activelayout") {
updateLayout()
}
}