Docs-only slice of ticket #22: include file, integration page, index links. Tray-watcher observation stays open for hardware run (#32); no probe code changed. Refs #22
37 lines
1.6 KiB
KDL
37 lines
1.6 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.
|
|
|
|
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+D 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+E 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+D 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";
|
|
// }
|
|
}
|