Widgets
> Published on Wed, Jul 24, 2024> Updated on Mon, Jan 20, 2025
When using the widget realm, target is the name of the widget you want to refresh or toggle (see the list below for allowed widget names) and action is the action you want to perform on it (allowed actions are refresh, toggle, disable or enable).
Here is the list of the available widgets:
batterybrowser-trackcpucryptodate-displaygpukeyboardmemorymicmpdmusicnetstatssoundspotifystocktimeviscosity-vpnweatherwifiyoutube-musiczoom
For the user widgets, the request is composed of the following parts:
# Toggle, disable, enable or refresh a user widget
curl http://localhost:7776/<realm>/user-widget/<action>/<id>id is the number of the widget displayed in each custom user widget in the settings module (it is based on their order).
Examples:
# Force time widget refresh
curl http://localhost:7776/widget/time/refresh
# Toggle time widget visibility
curl http://localhost:7776/widget/time/toggle
# Force the user widget n°1 to refresh
curl http://localhost:7776/widget/user-widget/refresh/1
# Toggle the user widget n°1 visibility
curl http://localhost:7776/widget/user-widget/toggle/1
# Hide cpu widget
curl http://localhost:7776/widget/cpu/disable
# Show cpu widget
curl http://localhost:7776/widget/cpu/enableIf you try to hide or show a widget already in the desired state, the request will be ignored.