parent
f171ca2c47
commit
067b71bcbd
1 changed files with 2 additions and 4 deletions
|
|
@ -30,7 +30,7 @@ Singleton {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (n === "activelayout") {
|
if (n === "activelayout") {
|
||||||
kbProc.running = true;
|
root.kbLayout = event.parse(2)[1].slice(0, 2).toLowerCase();
|
||||||
} else if (["workspace", "moveworkspace", "activespecial", "focusedmon"].includes(n)) {
|
} else if (["workspace", "moveworkspace", "activespecial", "focusedmon"].includes(n)) {
|
||||||
Hyprland.refreshWorkspaces();
|
Hyprland.refreshWorkspaces();
|
||||||
Hyprland.refreshMonitors();
|
Hyprland.refreshMonitors();
|
||||||
|
|
@ -48,12 +48,10 @@ Singleton {
|
||||||
}
|
}
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: kbProc
|
|
||||||
|
|
||||||
running: true
|
running: true
|
||||||
command: ["hyprctl", "-j", "devices"]
|
command: ["hyprctl", "-j", "devices"]
|
||||||
stdout: StdioCollector {
|
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue