blob: db7881c2611955b2ea622b3fb092cc9fdeef33fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package internal
import (
"github.com/godbus/dbus/v5"
"time"
)
type KeyboardInfo struct {
Name string `json:"name"`
Address string `json:"address"`
LeftBattery int `json:"left_battery"`
RightBattery int `json:"right_battery"`
Connected bool `json:"connected"`
LastUpdate time.Time `json:"last_update"`
}
type Config struct {
Name string `json:"name"`
Address string `json:"address"`
UpdateInterval int `json:"update_interval"`
LowBatteryThreshold int `json:"low_battery_threshold"`
ShowNotifications bool `json:"show_notifications"`
}
type Device struct {
Name string
Address string
Path dbus.ObjectPath
}
|