aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/island/Keyboard.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-07 18:57:23 +0200
committerDanilo M. <danix@danix.xyz>2026-10-07 18:57:23 +0200
commitb324ff0fb5cbc13a038ce2e5a2a4af69598bb91a (patch)
tree3038d7ed7f940b209b7e9db68393c6e229d925cd /desktop/island/Keyboard.qml
parent744802e1ecb44ddb4714f8922b8ee0e9e5def811 (diff)
downloadquickshell-b324ff0fb5cbc13a038ce2e5a2a4af69598bb91a.tar.gz
quickshell-b324ff0fb5cbc13a038ce2e5a2a4af69598bb91a.zip
fix(island): review findings in the pill components
- The flag switches once per wheel notch; a touchpad's stream of small deltas switched an erratic number of times. - The flick decides on resolved icon paths, so a name the icon theme lacks falls back to the workspace number instead of a blank slot. - Layout switching uses Hyprland's 'current' keyboard rather than looking up the main device in a subshell. - The capsule radius reaches half the rest height, a real capsule. - privacy.sh exits non-zero when pw-dump fails, so Privacy keeps its last reading instead of reporting nothing captured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/island/Keyboard.qml')
-rw-r--r--desktop/island/Keyboard.qml7
1 files changed, 2 insertions, 5 deletions
diff --git a/desktop/island/Keyboard.qml b/desktop/island/Keyboard.qml
index 1cbe9bc..0cd73c8 100644
--- a/desktop/island/Keyboard.qml
+++ b/desktop/island/Keyboard.qml
@@ -26,9 +26,6 @@ Singleton {
property string keymap: ""
readonly property string flag: Logic.flagFor(keymap)
- readonly property string mainKeyboard:
- "hyprctl devices -j | jq -r '.keyboards[] | select(.main) | .name'"
-
Process {
id: query
running: true
@@ -46,8 +43,8 @@ Singleton {
// dir is "next" or "prev", from the caller's own literal, never user text.
function cycle(dir) {
- switcher.command = ["sh", "-c",
- `hyprctl switchxkblayout "$(${root.mainKeyboard})" ${dir}`];
+ // "current" is Hyprland's own name for the main keyboard.
+ switcher.command = ["hyprctl", "switchxkblayout", "current", dir];
switcher.running = false;
switcher.running = true;
}