diff --git a/cmd/streamdeck/system_pages.go b/cmd/streamdeck/system_pages.go index 1f29759..79a5faf 100644 --- a/cmd/streamdeck/system_pages.go +++ b/cmd/streamdeck/system_pages.go @@ -1,6 +1,26 @@ package main func applySystemPages(conf *config) { - blankPage := page{} + blankPage := page{Keys: make(map[int]keyDefinition)} + + for i := 0; i < sd.NumKeys(); i++ { + blankPage.Keys[i] = keyDefinition{ + Display: dynamicElement{ + Type: "color", + Attributes: map[string]interface{}{ + "rgba": []interface{}{0x0, 0x0, 0x0, 0xff}, + }, + }, + Actions: []dynamicElement{ + { + Type: "page", + Attributes: map[string]interface{}{ + "relative": 1, + }, + }, + }, + } + } + conf.Pages["@@blank"] = blankPage }