Consistency of dmenu scripts.
This commit is contained in:
parent
d5a6cd4596
commit
428fc6892a
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
twoscreen() {
|
twoscreen() {
|
||||||
mirror=$(printf "no\\nyes" | dmenu -l 20 -i -p "mirror?")
|
mirror=$(printf "no\\nyes" | dmenu -l 20 -i -p "mirror")
|
||||||
if [ "$mirror" = "yes" ]; then
|
if [ "$mirror" = "yes" ]; then
|
||||||
external=$(echo "$screens" | dmenu -l 20 -i -p "optimize resolution for")
|
external=$(echo "$screens" | dmenu -l 20 -i -p "optimize resolution for")
|
||||||
internal=$(echo "$screens" | grep -v "$external")
|
internal=$(echo "$screens" | grep -v "$external")
|
||||||
|
@ -21,7 +21,7 @@ twoscreen() {
|
||||||
else
|
else
|
||||||
primary=$(echo "$screens" | dmenu -l 20 -i -p "primary")
|
primary=$(echo "$screens" | dmenu -l 20 -i -p "primary")
|
||||||
secondary=$(echo "$screens" | grep -v "$primary")
|
secondary=$(echo "$screens" | grep -v "$primary")
|
||||||
direction=$(printf "left\\nright" | dmenu -l 20 -i -p "what side of $primary should $secondary be on?")
|
direction=$(printf "left\\nright" | dmenu -l 20 -i -p "side of $primary should $secondary be on")
|
||||||
xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
|
xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue