Last active
February 28, 2022 16:16
-
-
Save pulketo/598b0ecb8e259ac4c5086685f7d58896 to your computer and use it in GitHub Desktop.
linux fb virtual screen (scroll screen)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Restore screen width to normal | |
DNAME=`xrandr | tail -n+2|head -n1| cut -d " " -f1` | |
WxH=`xrandr | grep \* | awk '{print $1}'` | |
W=`echo ${WxH}|cut -d "x" -f1` | |
H=`echo ${WxH}|cut -d "x" -f2` | |
xrandr --fb ${W}x${H} --output ${DNAME} --mode ${W}x${H} --panning ${W}x${H} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Doubles screen width, to be able to scroll desktop | |
DNAME=`xrandr | tail -n+2|head -n1| cut -d " " -f1` | |
WxH=`xrandr | grep \* | awk '{print $1}'` | |
W=`echo ${WxH}|cut -d "x" -f1` | |
H=`echo ${WxH}|cut -d "x" -f2` | |
ww=`echo 2*${W}|bc -l` | |
xrandr --fb ${ww}x${H} --output ${DNAME} --mode ${W}x${H} --panning ${ww}x${H}#!/bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment