mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-09 02:24:12 +00:00
27 lines
367 B
Go
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
|
|
}
|