luisbocanegra / plasma-panel-spacer-extended

Spacer with Mouse gestures for the KDE Plasma Panel featuring Latte Dock/Gnome/Unity drag window gesture. Run any shortcut, command, application or URL/file with up to ten configurable mouse actions.
https://store.kde.org/p/2128047
77 stars 1 forks source link

Display Text Within Spacer #43

Open mysteryx93 opened 3 months ago

mysteryx93 commented 3 months ago

Currently I need one spacer to the left, a Window Title widget, then another spacer to the right. Both spacers need to be configured separately, and the actions are inconsistent between the Window Title and the space around it.

What if a single spacer could replace all that? All if would take is the ability to display desired text, such as Window Title, in the middle or desired alignment.

luisbocanegra commented 3 months ago

What if a single spacer could replace all that? All if would take is the ability to display desired text, such as Window Title, in the middle or desired alignment.

That will be an overkill IMHO, I will be maintaining yet another widget tat shows the window title and I'd rather not do that.

Both spacers need to be configured separately, and the actions are inconsistent between the Window Title and the space around it.

What I can do instead is allow importing/exporting the configuration OR make all the widgets share the same common configuration file somehow.

mysteryx93 commented 3 months ago

It's actually no big deal configuring it twice. Just a bit annoying.

Adding options for sharing configuration could make things more complex, for not much actual benefits.

luisbocanegra commented 3 months ago

Adding options for sharing configuration could make things more complex, for not much actual benefits.

Can you elaborate on that?

actions are inconsistent between the Window Title and the space around it.

I think I didn't understand what you meant with this.

mysteryx93 commented 3 months ago

I mean. I just need to right-click on the left panel and configure it, and right-click on the right panel and configure it. It might take 2-3 minutes to repeat for both. Annoying but just needs to be done once.

For the whole top section, excluding controls on the left-side and right-side, I can double-click to un-maximize windows. White space supports drag actions; but if I do it over the Window Title area, that won't work. Both support mouse wheel actions, but the behavior will be different between scrolling on the Window Title text and the white space on either side of it. It brings inconsistent behaviors. Ideally that whole section would behave the same.

luisbocanegra commented 3 months ago

For the whole top section, excluding controls on the left-side and right-side, I can double-click to un-maximize windows. White space supports drag actions; but if I do it over the Window Title area, that won't work. Both support mouse wheel actions, but the behavior will be different between scrolling on the Window Title text and the white space on either side of it. It brings inconsistent behaviors. Ideally that whole section would behave the same.

Okay I understand you now. I don't know which Window Title widget are you using but it's expected that both have different features.

There's nothing I can do about that, apart from "injecting" the clickable area of my own widget into other widgets (in a Panel Colorizer kind of way) but that's a bit of a complex workaround I am not 100% sure is possible.

mysteryx93 commented 3 months ago

It's the standard Window Title widget.

There's nothing I can do about that, apart from "injecting" the clickable area of my own widget into other widgets (in a Panel Colorizer kind of way) but that's a bit of a complex workaround I am not 100% sure is possible.

That looks complicated

Is that really easier to do than simply displaying text? However some people prefer to have the clock in the middle so it's not that simple; but then the clock has its own specific actions.

luisbocanegra commented 3 months ago

That looks complicated

Yeah...

Is that really easier to do than simply displaying text?

Not really. But it would be doing more than I initially intended it was for, I start adding title, people may ask for styling of it, just like the window title does and other features, or even asking me to add the window buttons too.

However some people prefer to have the clock in the middle so it's not that simple; but then the clock has its own specific actions.

Good point. After all, if it comes to just showing the title and nothing more I already know the last active task so it's a matter of just displaying it. Will do some experiments with that.

mysteryx93 commented 3 months ago

It would require some minimal styling options, and options as to what text to display. That would be good for my personal needs.

Garuda Linux by default shows the Window Title on the left of the Global Menu and the Clock in the middle, so it wouldn't work well here. Clock has an action for Click, but only for Click. Mouse wheel or drag actions could still work; but ya that would be a complicated issue. And the "Full horizontal date" is a larger zone that is unresponsive. Unless it simply displays the full date but no calendar, and the time is in the corner and that shows the calendar on click.

Window buttons handle their own clicks so there's no need to catch mouse events there.