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

Show custom (non built-in) profiles in GNOME menus #72

Open
peter-lyons-kehl opened this issue Dec 14, 2021 · 3 comments
Open

Show custom (non built-in) profiles in GNOME menus #72

peter-lyons-kehl opened this issue Dec 14, 2021 · 3 comments

Comments

@peter-lyons-kehl
Copy link

This is about CPU Power GUI icon either on

  • the (usually) horizontal bar (which shows time, wifi, battery/turn off...) - left/primary click, or
  • the Dock or Dash (whichever it is, I have them merged) - right/context click
    in version 1.0.0. in GNOME (v. 41.2 on current Manjaro).

Currently those clicks show a menu

  • Switch to performance profile
  • Switch to balanced profile
    (If you're performing an exact match in the code, beware: Dock/Dash bar icon has "Performance" and "Balanced" starting with a capital letter.)

Could these two menus also show custom profiles (as listed in the app itself), please?

@vagnum08
Copy link
Owner

I will have a look into it.

@vagnum08
Copy link
Owner

Good news, I tried adding custom profile menu items on the tray icon. It works.
I will push the changes soon.
As for the dock menu, these actions are defined in both the code and the desktop file. I haven't checked if it would work without adding the entries on the desktop file.

As a temp workaround I will add a custom action to apply a profile. Then, one can add the action with their profile on the desktop file manually (by copying the desktop file from /usr/share/applications into ~/.local/share/applications and adding the action).

The action can look like

[Desktop Action Set Profile]
Name=Switch to custom profile
Exec=gapplication action org.rnd2.cpupower_gui Set-Profile custom-profile-name

@vagnum08
Copy link
Owner

I have pushed the changes mentioned above to feat-menu-profiles branch.
Haven't checked about Gnome dash actions yet.

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

No branches or pull requests

2 participants