Use loaded var if available
This commit is contained in:
parent
b2c77924cd
commit
bc78b9be1b
4
ecran
4
ecran
|
@ -145,7 +145,11 @@ case "${1}" in
|
||||||
;;
|
;;
|
||||||
leftof | left-of | ds | dock | dockstation | work )
|
leftof | left-of | ds | dock | dockstation | work )
|
||||||
#xrandr --output VGA-1 --mode 1024x768 --left-of "${PRIMARY_OUTPUT_NAME:=/dev/null}" --output "${PRIMARY_OUTPUT_NAME:=/dev/null}" --mode 1366x768
|
#xrandr --output VGA-1 --mode 1024x768 --left-of "${PRIMARY_OUTPUT_NAME:=/dev/null}" --output "${PRIMARY_OUTPUT_NAME:=/dev/null}" --mode 1366x768
|
||||||
|
if [ -n "${PRIMARY_OUTPUT_MODE}" ]; then
|
||||||
|
xrandr --output "${SECOND_OUTPUT_NAME:=/dev/null}" --auto --left-of "${PRIMARY_OUTPUT_NAME:=/dev/null}" --output "${PRIMARY_OUTPUT_NAME:=/dev/null}" --mode "${PRIMARY_OUTPUT_MODE}"
|
||||||
|
else
|
||||||
xrandr --output "${SECOND_OUTPUT_NAME:=/dev/null}" --auto --left-of "${PRIMARY_OUTPUT_NAME:=/dev/null}" --output "${PRIMARY_OUTPUT_NAME:=/dev/null}" --auto
|
xrandr --output "${SECOND_OUTPUT_NAME:=/dev/null}" --auto --left-of "${PRIMARY_OUTPUT_NAME:=/dev/null}" --output "${PRIMARY_OUTPUT_NAME:=/dev/null}" --auto
|
||||||
|
fi
|
||||||
printf "%b\n" 'Xrandr for second output left-of primary screen'
|
printf "%b\n" 'Xrandr for second output left-of primary screen'
|
||||||
;;
|
;;
|
||||||
rightof | right-of | home )
|
rightof | right-of | home )
|
||||||
|
|
Loading…
Reference in New Issue