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

Preset auto-loading based on the current activity #134

Open
luisbocanegra opened this issue Jan 8, 2025 · 0 comments
Open

Preset auto-loading based on the current activity #134

luisbocanegra opened this issue Jan 8, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@luisbocanegra
Copy link
Owner

I already use org.kde.taskmanager to detect maximized/active window so it should be a matter of listing and linking presets to them in the presets auto-loading tab, then implement the detection and switch similar to existing ones.

For future reference here's an example of what presetAutoloading (https://github.com/luisbocanegra/plasma-panel-colorizer/blob/0b3fa70a665a69c073e3e20cdc05000e14251507/package/contents/config/main.xml#L40C15-L40C32) currently stores:

{
    "enabled": true,
    "maximized": "/home/luis/.config/panel-colorizer/presets/border",
    "touchingWindow": "/home/luis/.config/panel-colorizer/presets/border",
    "floating": "/home/luis/.config/panel-colorizer/presets/border",
    "normal": "/home/luis/.config/panel-colorizer/presets/border",
    "maximizedFilterByActive": true
}

Maybe activities could be added like this:

{
    "enabled": true,
    "maximized": "/home/luis/.config/panel-colorizer/presets/border",
    "touchingWindow": "/home/luis/.config/panel-colorizer/presets/border",
    "floating": "/home/luis/.config/panel-colorizer/presets/border",
    "normal": "/home/luis/.config/panel-colorizer/presets/border",
    "maximizedFilterByActive": true,
    "activity": {
        "activity-identifier-1": "/home/luis/.config/panel-colorizer/presets/border",
        "activity-identifier-2": "/home/luis/.config/panel-colorizer/presets/border"
    }
}

Originally posted by @luisbocanegra in #126 (comment)

@luisbocanegra luisbocanegra added the enhancement New feature or request label Jan 8, 2025
@luisbocanegra luisbocanegra added this to the v2.0.0 milestone Jan 8, 2025
@luisbocanegra luisbocanegra self-assigned this Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant