Files
voculinux/resources/niri/voculinux.kdl
T
xavierk a451e1d512
CI / security (push) Successful in 1m26s
CI / lint (push) Successful in 21s
CI / ai-review (push) Skipped
fix(niri): conflict-free example keybinds and a niri-aware inject probe (#47)
The niri example binds move to Mod+Shift+M (toggle), Mod+Shift+S (start) and Mod+Shift+X (stop), free in stock niri and in Dank Material Shell's binds. inject-probe reuses the injector's niri guard, so it no longer reports the portal on niri.

Fixes #45
Fixes #46
2026-11-06 18:29:29 +00:00

41 lines
1.9 KiB
KDL

// Voculinux dictation toggle for the niri Wayland compositor.
//
// Copy this file to ~/.config/niri/voculinux.kdl, then add this line near
// the top of ~/.config/niri/config.kdl:
//
// include "~/.config/niri/voculinux.kdl"
//
// Prerequisite inside Voculinux: open Settings → Shortcuts and turn on
// "External Activation (Desktop Shortcut)". A running instance then answers
// the triggers below over D-Bus; the built-in key listener stays off.
//
// One key is either a compositor bind or an in-app Voculinux shortcut,
// never both: do not keep this key configured under Settings → Shortcuts.
//
// The keys below were free in niri's stock binds and in Dank Material Shell's
// binds when this file was written. Before you use one, check it against your
// own config: docs/NIRI.md, "Check a key before you bind it".
binds {
// Toggle dictation, exactly once per press. repeat=false stops key
// repeat from firing the spawn again while the key is held (which
// would toggle dictation back off before you let go).
Mod+Shift+M repeat=false hotkey-overlay-title="Toggle Voculinux dictation" {
spawn "voculinux" "--toggle";
}
// Optional explicit start/stop binds. Same rule: keep repeat off.
// Mod+Shift+S repeat=false hotkey-overlay-title="Start Voculinux dictation" {
// spawn "voculinux" "--start";
// }
// Mod+Shift+X repeat=false hotkey-overlay-title="Stop Voculinux dictation" {
// spawn "voculinux" "--stop";
// }
// Flatpak installs: voculinux is not on the host PATH, so bind the
// host D-Bus call instead (same toggle, no extra sandbox per press).
// Mod+Shift+M repeat=false hotkey-overlay-title="Toggle Voculinux dictation" {
// spawn "gdbus" "call" "--session" "--dest" "com.voculinux.Voculinux" "--object-path" "/com/voculinux/Voculinux" "--method" "com.voculinux.Voculinux.Toggle";
// }
}