Skip to content

Instantly share code, notes, and snippets.

@hamdouni
Last active September 24, 2018 07:10
Show Gist options
  • Save hamdouni/da4603492ca856e85e4a1a6ec6bfe4fa to your computer and use it in GitHub Desktop.
Save hamdouni/da4603492ca856e85e4a1a6ec6bfe4fa to your computer and use it in GitHub Desktop.
Get the other connected monitor (not the internal) and configure it above
#!/bin/sh
# get the other connected monitor (not the internal)
other=`xrandr |grep " connected" | awk '{print $1}' | grep -v 'eDP-1\|^$i'`
xrandr --output eDP-1 --auto --below $other --output $other --auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment