Font gets enlarged when rotating screen
Posted
by
queueoverflow
on Ask Ubuntu
See other posts from Ask Ubuntu
or by queueoverflow
Published on 2012-06-04T20:59:21Z
Indexed on
2012/06/04
22:47 UTC
Read the original article
Hit count: 382
rotate-monitor
I have a new ThinkPad X220 Tablet with Kubuntu 12.04. When I rotate the screen 90° with a script, the fonts of all programs that I open after the rotation have ugly huge fonts.
#!/bin/sh
# Find the line in "xrandr -q --verbose" output that contains current screen orientation and "strip" out current orientation.
rotation="$(xrandr -q --verbose | grep 'connected' | egrep -o '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')"
# Using current screen orientation proceed to rotate screen and input tools.
case "$rotation" in
normal)
# rotate to the left
xrandr -o right
xsetwacom set "Wacom ISDv4 E6 Pen stylus" rotate cw
xsetwacom set "Wacom ISDv4 E6 Finger touch" rotate cw
xsetwacom set "Wacom ISDv4 E6 Pen eraser" rotate cw
;;
right)
# rotate to normal
xrandr -o normal
xsetwacom set "Wacom ISDv4 E6 Pen stylus" rotate none
xsetwacom set "Wacom ISDv4 E6 Finger touch" rotate none
xsetwacom set "Wacom ISDv4 E6 Pen eraser" rotate none
;;
esac
© Ask Ubuntu or respective owner