buskill-app
buskill-app copied to clipboard
GUI Feedback on trigger execution
Problem: The GUI app currently doesn't display anything when a USB removal event causes a trigger to be executed. This means that, if it fails to execute, the user sees nothing happening at all.
Solution: We need to display a notification in the GUI saying that the trigger was (attempted to be executed)
This is already done in the CLI. When a USB hotplug event is detected, it will output something like this
DEBUG: called hotplugCallbackNix()
context:|<usb1.USBContext object at 0x730a750bb250>|
device:|Bus 002 Device 002: ID 0bda:0328|
event:|2|
usb1.HOTPLUG_EVENT_DEVICE_LEFT:|2|
calling <bound method BusKill.triggerLin of <packages.buskill.BusKill object at 0x730a76aa6510>>
DEBUG: BusKill lockscreen trigger executing now
This also gets logged to the debug log file.
We need to display something similar to this in the GUI. Perhaps with a toast message of some kind. I'm not a fan of KivyMD, but perhaps I could implement something similar to this
- https://github.com/kivymd/KivyMD/wiki/Modules-Toast