francma / wob

A lightweight overlay volume/backlight/progress/anything bar for Wayland.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: add rotation option

paper42 opened this issue · comments

Something like -r, --rotate=vertical would be nice.

I was thinking about this and maybe something like rotate=90 (degrees) would be better if it is not too much harder to implement. Imagine someone wanted to create a bar which goes from up to down, this way wob wouldn't need another flag which reverses the direction of the bar.

There is another way to do it, automatic one. It limits directions to only 2, but why would you need more anyway?
What I am talking about is to define direction based on geometry.
If Width > height then horisontal; else vertical. Something along these lines

I tried to implement my idea, but could not get it to work somewhy

#97 works well and I've been using it for a week with no issues.