LLMIFY THIS MOFO
CI / Test (push) Successful in 44s

This commit is contained in:
2026-09-01 01:49:40 -04:00
parent dad09d1109
commit 4426af63cb
19 changed files with 388 additions and 56 deletions
+7 -4
View File
@@ -12,10 +12,11 @@ type Injector interface {
}
type Config struct {
Backends []string // Ordered list: "ydotool", "wtype", "clipboard"
YdotoolTimeout time.Duration // Timeout for ydotool commands
WtypeTimeout time.Duration // Timeout for wtype commands
ClipboardTimeout time.Duration // Timeout for clipboard operations
Backends []string // Ordered list: "clipboard-paste", "ydotool", "wtype", "clipboard"
YdotoolTimeout time.Duration // Timeout for ydotool commands
WtypeTimeout time.Duration // Timeout for wtype commands
ClipboardTimeout time.Duration // Timeout for clipboard operations
CtrlShiftVClasses []string // Hyprland window-class substrings that paste with Ctrl+Shift+V
}
type injector struct {
@@ -34,6 +35,8 @@ func NewInjector(config Config) Injector {
backends = append(backends, NewWtypeBackend())
case "clipboard":
backends = append(backends, NewClipboardBackend())
case "clipboard-paste":
backends = append(backends, NewClipboardPasteBackend(config.CtrlShiftVClasses))
default:
log.Printf("Injection: unknown backend %q, skipping", name)
}