I would like to share an idea on how I customized Hudiy to watch Youtube, browse Google, play games or shutdown/reboot/return directly from Hudiy.
In the applciations menu are added new categories: Web, Games, Power
Web: YouTube, Google
Games: LBreakout2, Neverball, Pingus, Supertux2, SupeTuxKart2
Power: Shutdown, Reboot, Return
I used Hudiy's simple way of opening "url" in actions.json for opening websites which then make the action that they are programmed to do - all you need is a python script running in the background and that's it (I guess
The script is running a flask server on the localhost, so if you don't have flask server installed, you can do "pip3 install flask" and that should work for you.
The games that I use are the ones you can simply install with "sudo apt install supertux2 -y", "sudo apt install supertuxkart -y",...
In the attachements, you can find the Files.rar which contains: application.json, applications_menu.json, hudiy_server.py. and hudiy_server.service.:
- hudiy_server.service - a service responsible for running the hudiy_server.py script. Dont forget to change: ExecStart=/usr/bin/python3 /path/to/your/hudiy_server.py
- hudiy_server.py - python script running flask server with the endopits. Each endpoint does it's action. Here, you can define more endpoints and assign them what to do. For example the shutdown endpoint is "http://127.0.0.1:44408/shutdown". If you put this into search bar in the chromium, the command "sudo shutdown -h now" is executed.
- applications_menu.json - added new categories: Web, Games, Power. Added new items: Youtube, Google; LBreakout2, Neverball, Pingus, SuperTux2, SuperTuxKart; Shutdown, Reboot & Return.
- application.json - added new actions for opening YouTube, Google; games; Shutdown, Reboot & Return.- almost all the actions are opnenig the url for the flask server. The action for Return is the only native Hudiy action (quit_hudiy).
Currently, I cannot remote to the Hudiy to take a screenshot, but when I will be there, I will try to send you how it looks.
At least I hope this helps for now. All the coding stuff was done with the help of AI
Have a nice day!