fix: streamdeck new config format

This commit is contained in:
Patrick 2024-07-02 23:18:17 +02:00
parent b5676aa2aa
commit 33cd733ff8
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 111 additions and 111 deletions

View file

@ -16,7 +16,7 @@ in {
home-manager.sharedModules = [
({config, ...}: let
cfg = settingsFormat.generate "config.json" {
streamdeck_ui_version = 1;
streamdeck_ui_version = 2;
state = config.programs.streamdeck-ui.settings;
};
preStart = pkgs.writeShellScript "streamdeck-setup-config" ''

View file

@ -3,8 +3,10 @@
enable = true;
settings = {
# Device ID
state = {
"AL31H1B01852" = {
# fuck you streamdeck?
# why no distinction between settings and state????
rotation = 0;
buttons = {
# Page number
"0" = {
@ -121,7 +123,5 @@
brightness_dimmed = 99; # dimmed brighness
};
};
streamdeck_ui_version = 2;
};
};
}