Files
wisp-open/internal/xhotkey/hotkey_linux_platform.go
T
2026-05-09 13:51:20 -07:00

27 lines
367 B
Go

//go:build linux
package hotkey
import (
"sync"
"github.com/godbus/dbus/v5"
)
const (
linuxHKNone = iota
linuxHKPortal
)
type platformHotkey struct {
mu sync.Mutex
registered bool
backend int
// Wayland / XDG portal global shortcuts
portalStop chan struct{}
portalDone chan struct{}
portalConn *dbus.Conn
sessionPath dbus.ObjectPath
}