fixed menu config

This commit is contained in:
Rudis Muiznieks 2022-12-27 13:40:50 -06:00
parent 8ee7015138
commit 545911aead
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 30 additions and 29 deletions

View File

@ -9,36 +9,37 @@ from cinput import ControlInput
from graphics import Graphics from graphics import Graphics
menu_config = [ menu_config = [
MenuItem("Music", MenuItem("Music",
MenuType.SUB_MENU, MenuType.SUB_MENU,
{"sub_menu": [ {"sub_menu": [
MenuItem("Artists", MenuItem("Artists",
MenuType.PLUGIN, MenuType.PLUGIN,
{"plugin": "music", {"plugin": "music",
"arg": "artists"}), "arg": "artists"}),
MenuItem("Genres", MenuItem("Genres",
MenuType.PLUGIN, MenuType.PLUGIN,
{"plugin": "music", {"plugin": "music",
"arg": "genres"}), "arg": "genres"}),
MenuItem("Playlists", MenuItem("Playlists",
MenuType.PLUGIN, MenuType.PLUGIN,
{"plugin": "music", {"plugin": "music",
"arg": "playlists"}), "arg": "playlists"}),
]}),
MenuItem("System",
MenuType.SUB_MENU,
{"sub_menu": [
MenuItem("Information",
MenuType.PLUGIN,
{"plugin": "info",
"arg": None}),
MenuItem("Reboot",
MenuType.EXIT_CMD,
{"command": "sudo reboot"}),
MenuItem("Shutdown",
MenuType.EXIT_CMD,
{"command": "sudo shutdown now"})
]}), ]}),
MenuItem("System",
MenuType.SUB_MENU,
{"sub_menu": [
MenuItem("Information",
MenuType.PLUGIN,
{"plugin": "info",
"arg": None}),
MenuItem("Reboot",
MenuType.EXIT_CMD,
{"command": "sudo reboot"}),
MenuItem("Shutdown",
MenuType.EXIT_CMD,
{"command": "sudo shutdown now"})
]}),
]
cinput = ControlInput() cinput = ControlInput()
graphics = Graphics() graphics = Graphics()