diff --git a/scripts/menu/menu-xrandr b/scripts/menu/menu-xrandr index 24b473b..a00d406 100755 --- a/scripts/menu/menu-xrandr +++ b/scripts/menu/menu-xrandr @@ -1,8 +1,9 @@ #!/bin/sh LIST="$(xrandr | sed '/ connected/!d;s/ .*$//')" -MONITORS="$(printf '%s' "${LIST}" | tr '\n' ' ')" -MIRR="$(printf 'Yes\nNo' | menu "Mirror monitors?:")" ULIST="$(xrandr | sed '/ disconnected/!d;s/ .*$//')" +MONITORS="$(printf '%s' "${LIST}" | tr '\n' ' ')" + +MIRR="$(printf 'Yes\nNo' | menu "Mirror monitors?:")" for i in ${ULIST} ; do UNSET="${UNSET} --output ${i} --off"