diff --git a/.local/bin/displayselect b/.local/bin/displayselect index dc7b505..682762e 100755 --- a/.local/bin/displayselect +++ b/.local/bin/displayselect @@ -35,19 +35,12 @@ twoscreen() { # If multi-monitor is selected and there are two screens. --output "$internal" --auto --same-as "$external" \ --scale "$scale_x"x"$scale_y" else - default=$(printf "yes\\nno" | dmenu -i -p "Default settings?") - if [ $default = "no" ]; then - primary=$(echo "$screens" | dmenu -i -p "Select primary display:") - secondary=$(echo "$screens" | grep -v "$primary") - direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?") - rotation=$(printf "normal\\nleft\\nright" | dmenu -i -p "Rotate $secondary?") - xrandr --output "$primary" --auto --scale 1.0x1.0 \ - --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.2x1.2 --rotate $rotation - else - xrandr --fb 3840x1080 \ - --output "eDP1" --mode 1920x1080 --pos 1920x0\ - --output "HDMI2" --pos 0x0 - fi + primary=$(echo "$screens" | dmenu -i -p "Select primary display:") + secondary=$(echo "$screens" | grep -v -w "$primary") + direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?") + rotation=$(printf "normal\\nleft\\nright" | dmenu -i -p "Rotate $secondary?") + xrandr --output "$primary" --auto --scale 1.0x1.0 \ + --output "$secondary" --"$direction"-of "$primary" --auto fi }