Skip to content

2. Popups

mocki-toki edited this page Feb 26, 2025 · 1 revision

Popup is a feature in barik that lets you open an extended and interactive view of a widget by simply clicking on it. This functionality is available for the following widgets: Now Playing, Network, Battery, and Time (Calendar). Each popup is configured as a sub-section within the corresponding widget’s configuration, using the system name of the widget appended with .popup.

Some popups support several view variants (for example: box, vertical, horizontal). To manage them, hover mouse cursor over the bottom right corner of the popup.

SCR-20250226-mrkp

The display option can also be configured in the settings (refer to the specific popup description for details).

Default Popups

Now Playing Popup (default.nowplaying.popup)

SCR-20250226-mmqw SCR-20250226-mmqw

When you click on the Now Playing widget, the popup provides a detailed view of the currently playing track.

Configuration

[widgets.default.nowplaying.popup]
view-variant = "vertical"    # sets the popup layout (vertical, horizontal)

Wifi/Ethernet Indicator Popup (default.network.popup)

SCR-20250226-mpjw

Displays detailed data about the current connection.

Battery Indicator Popup (default.battery.popup)

SCR-20250226-mppn

Displays battery charge. In the future, it will show the charge of other devices, such as an iPhone, headphones, or a wireless mouse.

Calendar Popup (default.time.popup)

SCR-20250226-mogd SCR-20250226-moje SCR-20250226-moje

The Time widget can display additional details, such as calendar events, in an extended view when activated.

Configuration

[widgets.default.time.popup]
view-variant = "vertical"    # sets the popup layout for an extended view of time and calendar details

Third-party popups

The Extension API is in development; you can suggest your ideas to help with the implementation: https://github.com/mocki-toki/barik/issues/44