Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Dual Monitor configuration on Xubuntu
#!/bin/bash
# Dual Monitors configuration on Xubuntu
# Monitor Order #####################
#laptop is left and monitor is right
xrandr --output LVDS1 --left-of VGA1
#laptop is right and monitor is left
#xrandr --output VGA1 --left-of LDVS1
#####################################
# Resolution settings ###############
#Tip: to configure it, exec 'xrandr' on bash to view the options by monitor
#laptop resolution
xrandr --output LVDS1 --mode 1024x600 --rate 60.0
#monitor resolution
xrandr --output VGA1 --mode 1680x1050 --rate 59.9
#####################################
# Primary Monitor ###################
# laptop monitor is the primary
xandr --output VGA1 --primary
#####################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment