3
# A script that is called from startkde. Does early setup of a configuration
6
if test "$krandrrc_display_applyonstartup" = "true"; then
7
if test -n "$krandrrc_display_startupcommands"; then
8
# new way of simply storing the commands
9
eval "$krandrrc_display_startupcommands"
11
# backwards compatibility
12
# 4 screens is hopefully enough
13
for scrn in 0 1 2 3; do
15
width="\$krandrrc_screen${scrn}_width" ; eval "width=$width"
16
height="\$krandrrc_screen${scrn}_height" ; eval "height=$height"
17
if test -n "${width}" -a -n "${height}"; then
18
args="$args -s ${width}x${height}"
20
refresh="\$krandrrc_screen${scrn}_refresh" ; eval "refresh=$refresh"
21
if test -n "${refresh}"; then
22
args="$args -r ${refresh}"
24
rotation="\$krandrrc_screen${scrn}_rotation" ; eval "rotation=$rotation"
25
if test -n "${rotation}"; then
41
reflectx="\$krandrrc_screen${scrn}_reflectx" ; eval "reflectx=$reflectx"
42
if test "${refrectx}" = "true"; then
45
reflecty="\$krandrrc_screen${scrn}_reflecty" ; eval "reflecty=$reflecty"
46
if test "${refrecty}" = "true"; then
49
if test -n "$args"; then