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

Overlapping zone indicator offset #102

Open
spacekatia opened this issue Sep 12, 2024 · 2 comments
Open

Overlapping zone indicator offset #102

spacekatia opened this issue Sep 12, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@spacekatia
Copy link

A i've been messing around with this plugin, i've come across the need to have two zones whose centers overlap. Naturally, i tried the method outlined in #1 but the indicator JSON object seems to not be evaluated.

I'm on

  • Kzones 0.8
  • Plasma 6.1.4
  • Wayland

so i'm wondering if this just didn't get make the jump across plasma versions or of i'm going at this all wrong.

Either way, this is one of the most useful KDE plugins for me - thank you for the excellent work :>

@gerritdevriese
Copy link
Owner

This option was scrapped a while ago, but I'll re-add for you in the next version 🙂

@gerritdevriese gerritdevriese added this to the v1.0.0 milestone Sep 17, 2024
@gerritdevriese gerritdevriese self-assigned this Sep 17, 2024
@gerritdevriese gerritdevriese added the enhancement New feature or request label Oct 19, 2024
@gerritdevriese
Copy link
Owner

Not sure if you still need this, but you can now specify the position of the indicator

  • indicator: an object containing the indicator settings (optional)
    • position: default is center, other options are top-left, top-center, top-right, right-center, bottom-right, bottom-center, bottom-left, left-center
    • margin: an object containing the margin for the indicator
      • top, right, bottom, left: margin in pixels

Maybe it's a bit overkill but I think now you can move the indicator anywhere you want.

For example to move it 50 pixels down:

{
    "x": 0,
    "y": 0,
    "height": 100,
    "width": 25,
    "indicator": {
        "margin": {
            "top": 50
        }
    }
}

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

2 participants