[displayselect] feat: remove default config
This commit is contained in:
parent
40a6eb6330
commit
0670ad37a6
@ -35,19 +35,12 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
|
|||||||
--output "$internal" --auto --same-as "$external" \
|
--output "$internal" --auto --same-as "$external" \
|
||||||
--scale "$scale_x"x"$scale_y"
|
--scale "$scale_x"x"$scale_y"
|
||||||
else
|
else
|
||||||
default=$(printf "yes\\nno" | dmenu -i -p "Default settings?")
|
|
||||||
if [ $default = "no" ]; then
|
|
||||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
||||||
secondary=$(echo "$screens" | grep -v "$primary")
|
secondary=$(echo "$screens" | grep -v -w "$primary")
|
||||||
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
|
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?")
|
rotation=$(printf "normal\\nleft\\nright" | dmenu -i -p "Rotate $secondary?")
|
||||||
xrandr --output "$primary" --auto --scale 1.0x1.0 \
|
xrandr --output "$primary" --auto --scale 1.0x1.0 \
|
||||||
--output "$secondary" --"$direction"-of "$primary" --auto --scale 1.2x1.2 --rotate $rotation
|
--output "$secondary" --"$direction"-of "$primary" --auto
|
||||||
else
|
|
||||||
xrandr --fb 3840x1080 \
|
|
||||||
--output "eDP1" --mode 1920x1080 --pos 1920x0\
|
|
||||||
--output "HDMI2" --pos 0x0
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user