Use loaded var if available
This commit is contained in:
parent
b2c77924cd
commit
bc78b9be1b
6
ecran
6
ecran
@ -145,7 +145,11 @@ case "${1}" in
|
||||
;;
|
||||
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 "${SECOND_OUTPUT_NAME:=/dev/null}" --auto --left-of "${PRIMARY_OUTPUT_NAME:=/dev/null}" --output "${PRIMARY_OUTPUT_NAME:=/dev/null}" --auto
|
||||
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
|
||||
fi
|
||||
printf "%b\n" 'Xrandr for second output left-of primary screen'
|
||||
;;
|
||||
rightof | right-of | home )
|
||||
|
Loading…
Reference in New Issue
Block a user