View Single Post
Posts: 163 | Thanked: 279 times | Joined on Feb 2017 @ Tbilisi, Georgia (caucasus)
#164
Here is script to automatically get resolution.
This only needs one argument. for example: startlxde.

This can be change to search that file and if it's not available or if it could not find resolution to ask user to enter by hand, but i'm on work now and do not have time. When i get home i'll add that.

If you change $y $x places you will see half of your screen. Because Arch itself will open in landscape mode, but the whole window is in portrait mode. So if we somehow manage to rotate whole window itself it will work in landscape mode

HTML Code:
resolution=`cat /sys/class/graphics/fb0/modes | grep -o -P '(?<=U:).*(?=p)'`
x=${resolution%%x*}
y=${resolution##*x}
chroot /opt/easychroot/Arch bash /usr/share/easychroot/scripts/start_xwayland_user_shell.sh $y $x $1

Last edited by matemana; 2017-03-09 at 10:38.
 

The Following 7 Users Say Thank You to matemana For This Useful Post: