Skip to content

IPC option for managing power profiles #2491

@DBTDerpbox

Description

@DBTDerpbox

Feature Description

An IPC command for managing the power profiles would be nice to have instead of having to go and manually open the menu every time

Use Case

I came from KDE and got very used to pressing Super+B to quickly change power profiles without having to go manually open its menu and would like to recreate the behavior in DMS

I would bind Mod+B to dms ipc powerprofile cycle to easily switch between them

Compositor(s)

All compositors

If Other, please specify

No response

Proposed Solution

Something along the lines of dms ipc powerprofile [option] with the options being close, open, toggle, list, set, cycle
You would be able to open the power profile menu and also change which one is set with IPC
Since there are 3 options, I think there should be an option to change them in order with cycle so you could go from Power Saver -> Balanced -> Performance and then back to Power Saver by sending a single command repeatedly

Alternatives/Existing Solutions

I know you can do this with stuff like busctl, but DMS isn't aware of these changes so it won't show a popup indicating that it got changed, and the menu will have outdated information until you manually update it in DMS's power profile menu

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions