amnweb / yasb

A highly configurable Windows status bar written in Python.
Other
224 stars 18 forks source link

Yabi is only 50% width on mixed orientation displays #43

Open piskov opened 2 weeks ago

piskov commented 2 weeks ago

I have one album and one portrait displays.

On vertical display yabi takes only 50% of screen width despite the 100% width in config. Horizontal display works as expected.

image

config.txt

amnweb commented 2 weeks ago

What's happens if you set screen size instead of 100% for width? Example width:1920 replace 1920 with your screen size

piskov commented 2 weeks ago

That works: 1080 (I have 4k in portrait with 200% scaling).

image

… but, of course my main 6k display (with same 200% scaling) is now cropped to almost 30% ↓ image

Also it would work if I set it to 200% (but, again, main display would be twice as long).

Could it be some hardcoded logic that fails on 6k screens? Or because of that mixed portrait/landscape config?

image

  1. 6016×3384 200% landscape
  2. 2160×3840 200% portrait
piskov commented 2 weeks ago

But if I set both displays to landscape, 100% works as expected. So it is definitely some bug in width calculation on mixed orientations.

amnweb commented 2 weeks ago

You can simply define different bars per monitor and set up each bar as you like.

piskov commented 2 weeks ago

Here’s one more thing with 100% width and second display:

  1. Here is portrait (takes 50%) image

  2. Now I switch it to landscape (full width great!): image

  3. I switch it back to portrait — NOW it works at full width: image

  4. I switch it again to album, than close and reopen yasb — it will be 50% width in album: image

tldr; I don’t see any logic in here of what could be the culprit :-)

piskov commented 2 weeks ago
  status-bar:
    screens: ['DELL P2419H (1)'] 
    ...
  status-bar-2:
    screens: ['DELL P2419H (2)'] 
    ...

Where could I get the correct display names?

amnweb commented 2 weeks ago
  status-bar:
    screens: ['DELL P2419H (1)'] 
    ...
  status-bar-2:
    screens: ['DELL P2419H (2)'] 
    ...

Where could I get the correct display names?

Should be under device manager > monitors

amnweb commented 2 weeks ago

I have added options to easily identify screens. image image