1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-09-19 18:21:43 +00:00
dotfiles/bin/changedisplay.sh
J.Fernando Sánchez d8f23e0276 Removed personal-scripts submodule
To make my life a bit easier
2013-06-20 17:54:47 +02:00

13 lines
394 B
Bash
Executable File

#!/bin/bash
# Author: Andrew Martin
# Credit: http://ubuntuforums.org/showthread.php?t=1309247
echo "Enter the primary display from the following:" # prompt for the display
xrandr --prop | grep "[^dis]connected" | cut --delimiter=" " -f1 # query connected monitors
read choice # read the users's choice of monitor
xrandr --output $choice --primary # set the primary monitor