diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-29 12:43:31 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-29 12:43:31 +1000 |
| commit | 067b71bcbda0bbe5754593fbc8fa64efe9bf478e (patch) | |
| tree | af969190dc44f71c67a196bfc2fde765e328cc69 | |
| parent | [CI] chore: update flake (diff) | |
| download | caelestia-shell-067b71bcbda0bbe5754593fbc8fa64efe9bf478e.tar.gz caelestia-shell-067b71bcbda0bbe5754593fbc8fa64efe9bf478e.tar.bz2 caelestia-shell-067b71bcbda0bbe5754593fbc8fa64efe9bf478e.zip | |
bar: fix kb layout
Closes #295
| -rw-r--r-- | services/Hyprland.qml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/services/Hyprland.qml b/services/Hyprland.qml index e774a33..7bb9458 100644 --- a/services/Hyprland.qml +++ b/services/Hyprland.qml @@ -30,7 +30,7 @@ Singleton { return; if (n === "activelayout") { - kbProc.running = true; + root.kbLayout = event.parse(2)[1].slice(0, 2).toLowerCase(); } else if (["workspace", "moveworkspace", "activespecial", "focusedmon"].includes(n)) { Hyprland.refreshWorkspaces(); Hyprland.refreshMonitors(); @@ -48,12 +48,10 @@ Singleton { } Process { - id: kbProc - running: true command: ["hyprctl", "-j", "devices"] stdout: StdioCollector { - onStreamFinished: root.kbLayout = JSON.parse(text).keyboards.find(k => k.main).layout + onStreamFinished: root.kbLayout = JSON.parse(text).keyboards.find(k => k.main).active_keymap.slice(0, 2).toLowerCase() } } } |