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
menu_config = [
MenuItem("Music",
MenuType.SUB_MENU,
{"sub_menu": [
MenuItem("Artists",
MenuType.PLUGIN,
{"plugin": "music",
"arg": "artists"}),
MenuItem("Genres",
MenuType.PLUGIN,
{"plugin": "music",
"arg": "genres"}),
MenuItem("Playlists",
MenuType.PLUGIN,
{"plugin": "music",
"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("Music",
MenuType.SUB_MENU,
{"sub_menu": [
MenuItem("Artists",
MenuType.PLUGIN,
{"plugin": "music",
"arg": "artists"}),
MenuItem("Genres",
MenuType.PLUGIN,
{"plugin": "music",
"arg": "genres"}),
MenuItem("Playlists",
MenuType.PLUGIN,
{"plugin": "music",
"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"})
]}),
]
cinput = ControlInput()
graphics = Graphics()