Replies: 3 comments 2 replies
-
The bar should resize according to the width of the monitor when new monitors are added or the resolution is changed. I can't replicate the behaviour that you are describing. In the screenshot that you have provided the bar does not look cropped, but rather it takes up the full width of the monitor and the right hand side is completely black (#000000). Does that correct itself when changing e.g. tags? It may perhaps be worth providing your Other observations is that the black line starts at 2560 and ends at 3429, suggesting that it draws up until the size of the laptop monitor. So I suspect that this has something to do with the initial drawable that is created using This pixmap is enlarged via So either a |
Beta Was this translation helpful? Give feedback.
-
Hello Stein,First of all I apologize for late response and thank you for your message.I will try to my best to clarify the issue. When I start the session via startx where the script with xrandr settings is placed:
<"xrandr --output eDP-1 --primary --mode 2560x1600 --pos 3440x0 --rotate normal --output DP-1-0 --off --output DP-1-1 --off --output DP-1-2 --off --output DP-1-3 --off --output HDMI-1-0 --mode 3440x1440 --pos 0x0 --rotate normal">
The screen on my laptop monitor looks/behave properly but on my external monitor shows shorter bar but except this it works normally. Then when I hit in the console second command.
<"xrandr --output eDP-1 --primary --mode 2560x1600 --pos 3440x0 --rotate normal --scale 0.9999x0.9999 --output DP-1-0 --off --output DP-1-1 --off --output DP-1-2 --off --output DP-1-3 --off --output HDMI-1-0 --mode 3440x1440 --pos 0x0 --rotate normal">
Then everything looks/behaves as it should be. I tried put in the first script the command "sleep 5" and the both bars looked ok, but on the on both monitors the wallpaper has been deformed and as well on external monitor cursor was not visible until I run any application - then cursor is visible and working. What is more the xrandr shows proper size of both monitors - here is result querying the xrandr with only my laptop monitor
<"Screen 0: minimum 320 x 200, current 2560 x 1600, maximum 16384 x 16384eDP-1 connected primary 2560x1600+0+0 (normal left inverted right x axis y axis) 344mm x 215mm> But if I will hit <"xdpyinfo | grep -i dimens"> I got this = dimensions: 2560x1600 pixels (677x423 millimeters) Which as you see is not proper. My laptop monitor is 16 inch and its width is 344mm. I suspected there is a problem because my laptop resolution is 2560 x 1600 but my 34 inch external monitor is: 3440x1440.Which looks wired that bigger monitor has smaller height in pixels isn't it? By the way - when I do not set xrandr at starting dwm and I use arandr and set second monitor the bar is ok but sometimes the wallpaper is deformed - i use feh to set this. Please find in the attachment files - config.h and patches.h. This is my fresh installation on netinst iso of Debian Trixie. By the way I am using dwm-flexipatch which is great job but I had problems with compilation - linking issue. I had to uncomment in config.mk
"# Uncomment this for the rounded corners patch / ROUNDED_CORNERS_PATCHXEXTLIB = -lXext"
otherwise I had to manually add -lXext to gcc........ command. However I did not picked up ROUNDED_CORNERS_PATCH.
In the log I saw there was a problem in line 29 of config.mk.
Once again many thanks for your time and efforts.
From now on I will check an email every day.
Best regards
|
Beta Was this translation helpful? Give feedback.
-
YOU WERE ABSOLUTELLY RIGHT. MANY THANKS!!!! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I properly set multimonitor setup with different resolutions.

I have noticed unwanted behavior of status bar when I connected second external monitor. This monitor resolution is higher then primary one in the laptop. While in the laptop status bar width is ok in the external one is cropped (do not stick to the width of the screen - is shorter - pls see the attached picture). I was trying to find any solution in the net - that what I have found out was to apply the patch - statusallmons. However this did not help. As well I tried ro add/remove to my .Xresorces dpi parameter, scalling via xrandr but without success. Below I posted xrandr command result.
What is more whenever for the first time I connect the external monitor and set this via arandr and then save the config file, everything is ok but next time when I log in to the system with above mentioned settings the status bar is cropped on the second monitor.
Can anyone experienced similar issue?
Thanks in advance for any tip.
Best regards
Screen 0: minimum 320 x 200, current 6000 x 1600, maximum 16384 x 16384
eDP-1 connected primary 2560x1600+3440+0 (normal left inverted right x axis y axis) 344mm x 215mm
2560x1600 165.00*+ 60.00 + 59.99 59.97
DP-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 connected 3440x1440+0+0 (normal left inverted right x axis y axis) 800mm x 335mm
3440x1440 99.98*+
Beta Was this translation helpful? Give feedback.
All reactions