vagnum08 / cpupower-gui

cpupower-gui is a graphical program that is used to change the scaling frequency limits of the cpu, similar to cpupower.
GNU General Public License v3.0
476 stars 31 forks source link

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

Open peter-lyons-kehl opened 2 years ago

peter-lyons-kehl commented 2 years ago

This is about CPU Power GUI icon either on

Currently those clicks show a menu

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

vagnum08 commented 2 years ago

I will have a look into it.

vagnum08 commented 2 years ago

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 commented 2 years ago

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