Zren / plasma-hud

Provides a way to run menubar commands in KDE Plasma through rofi, much like the Unity 7 Heads-Up Display (HUD).
GNU General Public License v2.0
235 stars 9 forks source link

add location config #54

Closed nclarius closed 2 years ago

nclarius commented 2 years ago

Implements issue #51

Zren commented 2 years ago

Probably need a link to location docs in the Readme documentation.
https://github.com/davatorium/rofi/blob/master/doc/Notes/Theme/Positioning/theme3-positioning.markdown

Also, location can be a string like:
northwest, north, northeast, west, center, east, southwest, south, southeast

Not really a fan of the magic location=9 for under mouse.

Zren commented 2 years ago

Also [Location] should be [General] Location. There's a merge conflict so I'm just gonna manually merge this with some fixes.

Zren commented 2 years ago

Uhg, I was wrong again. -location center only worked because it didn't understant the value and used rofi's default (which is to center). -location northwest does not work. We do need to use 0, 1, ..., 8. Unless we use window { location: northeast; } CSS.

Zren commented 2 years ago

The issue with using window { location: northeast; } is that the user can no longer control the location if they set a RofiTheme value.

Actually, we need to set the Width + Lines when we have a RofiTheme too. So might as well add that.