Consistency of dmenu scripts.

This commit is contained in:
Bartek Stalewski 2021-08-24 23:45:22 +02:00
parent d5a6cd4596
commit 428fc6892a

View File

@ -1,7 +1,7 @@
#!/bin/sh
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
external=$(echo "$screens" | dmenu -l 20 -i -p "optimize resolution for")
internal=$(echo "$screens" | grep -v "$external")
@ -21,7 +21,7 @@ twoscreen() {
else
primary=$(echo "$screens" | dmenu -l 20 -i -p "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
fi
}