Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ayatana AppIndicator support #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ItsZariep
Copy link

This PR introduces support for Ayatana AppIndicator in cbatticon. This enhancement addresses a specific issue where GtkIcon tray apps are not displayed in some scenarios (e.g., with Waybar; see #74 for details).

This PR does not replace GtkIcon but provides the option to choose between Ayatana AppIndicator (enabled with WITH_APPINDICATOR) and GtkIcon through preprocessors. This approach is similar to how LIBNOTIFY is currently handled.

However, there is a known limitation with Ayatana AppIndicator: it does not support click events (see AyatanaIndicators/libayatana-appindicator#4), required for left-click functionality. To work around this, the current implementation take advantage of the fact that a menu is necessary to have an indicator in ayatana, so I decided to use it to display those actions, this as a temporary measure until Ayatana adds support for click events.
cbatticon_appindicator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant