summaryrefslogtreecommitdiffstats
path: root/.scripts/i3cmds/displayselect
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-12-23 13:12:55 -0500
committerLuke Smith <luke@lukesmith.xyz>2018-12-23 13:12:55 -0500
commit07576a0106cb269d620cf3691703caf3a0149386 (patch)
tree5423cadc1f63129d5add76d7faa5c1b475a6a0ae /.scripts/i3cmds/displayselect
parentbd1caaf76bb737d4001e3c61e1bc2b81e59cbab3 (diff)
parent5bf372c6b0f8128ee46a2b98f6fe098bad9b32ee (diff)
downloadeibhear-07576a0106cb269d620cf3691703caf3a0149386.tar.gz
eibhear-07576a0106cb269d620cf3691703caf3a0149386.tar.zst
eibhear-07576a0106cb269d620cf3691703caf3a0149386.zip
Merge branch 'display-mirror' of https://github.com/anders-dc/voidrice into anders-dc-display-mirror
Diffstat (limited to '.scripts/i3cmds/displayselect')
-rwxr-xr-x.scripts/i3cmds/displayselect6
1 files changed, 3 insertions, 3 deletions
diff --git a/.scripts/i3cmds/displayselect b/.scripts/i3cmds/displayselect
index 9822b12..0bd612e 100755
--- a/.scripts/i3cmds/displayselect
+++ b/.scripts/i3cmds/displayselect
@@ -11,7 +11,7 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
# Mirror displays using native resolution of external display and a scaled
# version for the internal display
if [ "$mirror" = "yes" ]; then
- external=$(echo "$screens" | dmenu -i -p "Select external display:")
+ external=$(echo "$screens" | dmenu -i -p "Optimize resolution for:")
internal=$(echo "$screens" | grep -v "$external")
res_external=$(xrandr --query | sed -n "/^$external/,/\+/p" | \
@@ -27,7 +27,7 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
scale_x=$(echo "$res_ext_x / $res_int_x" | bc -l)
scale_y=$(echo "$res_ext_y / $res_int_y" | bc -l)
- xrandr --output "$external" --auto \
+ xrandr --output "$external" --auto --scale 1.0x1.0 \
--output "$internal" --auto --same-as "$external" \
--scale "$scale_x"x"$scale_y"
else
@@ -35,7 +35,7 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
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?")
- xrandr --output "$primary" --auto --output "$secondary" --"$direction"-of "$primary" --auto
+ xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
fi
}