Last active
August 29, 2015 13:58
-
-
Save rkjha/10342575 to your computer and use it in GitHub Desktop.
Enable/disable 2nd monitor in ubuntu [using xrandr]. Add these lines to `~/.bash_alias.sh` (and update device name accordingly) and reload bash config. (`source ~/.bashrc`)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash alias for turning on/off 2nd monitor | |
alias 2m_off='xrandr --output HDMI-0 --off' | |
alias 2m_on='xrandr --output HDMI-0 --auto --right-of VGA-0' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment