You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+26
Original file line number
Diff line number
Diff line change
@@ -54,3 +54,29 @@ The actions you can have on a button are:
54
54
-`url`: opens a url in your default browser via xdg
55
55
-`brightness`: set the brightness of the streamdeck as a percentage
56
56
-`switch_page`: change the active page on the streamdeck
57
+
58
+
59
+
### D-Bus
60
+
61
+
There is a D-Bus interface built into the daemon, the service name and interface for D-Bus are `com.thejonsey.streamdeck` and `com/thejonsey/streamdeck` respectively, and is made up of the following methods/signals
62
+
63
+
#### Methods
64
+
65
+
- GetConfig - returns the current running config
66
+
- SetConfig - sets the config, without saving to disk, takes in Stringified json, returns an error if anything breaks
67
+
- ReloadConfig - reloads the config from disk
68
+
- GetDeckInfo - Returns information about the active streamdeck in the format of
69
+
```json
70
+
{
71
+
"icon_size": 72,
72
+
"rows": 3,
73
+
"cols": 5,
74
+
"page": 0
75
+
}
76
+
```
77
+
- SetPage - Set the page on the streamdeck to the number passed to it, returns an error if anything breaks
78
+
- CommitConfig - Commits the currently active config to disk, returns an error if anything breaks
79
+
80
+
#### Signals
81
+
82
+
- Page - sends the number of the page switched to on the StreamDeck
0 commit comments