Converting a virtual screen to Wayland

The top of my laptop screen is broken and I can’t see anything in the 1600x82 rectangle.

Is it possible in Wayland / XWayland to convert a virtual screen to use only the visible area of ​​my monitor?

I managed to crack the solution in X using xrandr:

#!/bin/sh xrandr --newmode "1600x818_60.00" 107.33 1600 1688 1856 2112 818 819 822 847 -HSync +Vsync xrandr --addmode eDP1 1600x818_60.00 xrandr --output eDP1 --fb 1600x818 --panning 1600x818 --mode 1600x818_60.00 # Yes this is hacky, but it necessary to work around xrandr weirdness sleep 1 xrandr --fb 1600x818 --output eDP1 --mode 1600x900 --transform 1,0,0,0,1,-82,0,0,1 

However, I want to be able to do this in Wayland.

+5
source share

Source: https://habr.com/ru/post/1214402/


All Articles