Remix.run Logo
lhl 5 hours ago

Funy that you mention multi-monitor since it's one of the reasons I eventually moved to Wayland. The only way to support different DPI monitors in X was to do janky scaling or even jankier multiple X servers.

I don't use KDE (or GNOME anymore) but while I had to deal with a lot of initial speedbumps a couple years ago, these days instead of a full DE, I'm using a Niri setup and it's worked out great for me.

For my laptop, I have my own monitor-detection/wl-mirror script for example that is faster and more reliable for plugging into projectors/meeting room HDMI than even my old Macs.

somat 3 hours ago | parent | next [-]

The funny thing about this myth is that wayland does not even try to support Mixed DPI setups, the only thing it supports is, as you put it, janky scaling. Not that X is any better in the end but at least it has the data available if any application wants to try to do correct Mixed dpi (nobody does)

http://wok.oblomov.eu/tecnologia/mixed-dpi-x11/

So in yet another case of worse is better, wayland has the reputation of supporting mixed DPI environments, but not because it has any support for actual mixed DPI but because it is better at faking it (fractional scaling).

throw567643u8 5 hours ago | parent | prev [-]

Does anyone have links on how to set up multi monitor on Sway?

opan 2 hours ago | parent | next [-]

I use a docked ThinkPad with the lid closed and two external monitors. Here are my config bits.

  set $laptop eDP-1
  set $landscape 'Hewlett Packard HP ZR24w CNT037144C'
  set $portrait 'Hewlett Packard HP ZR24w CNT03512JN'
  bindswitch --reload --locked lid:on output $laptop disable
  bindswitch --reload --locked lid:off output $laptop enable
  
  ### Output configuration
  output $laptop bg $HOME/pictures/wallpaper/1529004448340.jpg fill
  output $landscape bg $HOME/pictures/wallpaper/1529004448340.jpg fill
  output $portrait bg $HOME/pictures/wallpaper/portrait/DYabJ0FV4AACG69.jpg fill 
  # pos args are x coords and y coords, transform is degrees of rotation counter-clockwise
  # set $portrait as left monitor and rotate it counterclockwise
  output $portrait pos 0 1200 transform 270
singron 4 hours ago | parent | prev [-]

The default config file explains some common things you might want to do. E.g. left or right side and scaling factor.