Skip to content

Commit

Permalink
Add support for an external HDMI monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Marier committed Jul 8, 2017
1 parent d6f69f7 commit 7c8b161
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions external-monitor
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/sh
if xrandr -d :0.0 | grep eDP1 > /dev/null ; then
xrandr -d :0.0 --output DP2 --auto
xrandr -d :0.0 --output HDMI1 --auto
xrandr -d :0.0 --output eDP1 --auto
xrandr -d :0.0 --output DP2 --left-of eDP1
xrandr -d :0.0 --output HDMI1 --above eDP1
else
xrandr -d :1.0 --output DP-3-2 --auto
xrandr -d :1.0 --output eDP-1 --auto
Expand Down

0 comments on commit 7c8b161

Please sign in to comment.