screen prompt fix

This commit is contained in:
Luke Smith 2018-11-01 20:50:40 -04:00
parent 89f09cc5ff
commit db6a8d6a57
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -6,7 +6,7 @@
# I plan on adding a routine from multi-monitor setups later. # I plan on adding a routine from multi-monitor setups later.
twoscreen() { # If multi-monitor is selected and there are two screens. twoscreen() { # If multi-monitor is selected and there are two screens.
primary=$(echo "$screens" | dmenu -i -p "asdf") primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
secondary=$(echo "$screens" | grep -v "$primary") secondary=$(echo "$screens" | grep -v "$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?")
xrandr --output "$primary" --auto --output "$secondary" --"$direction"-of "$primary" --auto xrandr --output "$primary" --auto --output "$secondary" --"$direction"-of "$primary" --auto