Add Display Port handling
This commit is contained in:
parent
1868b7a493
commit
37b42223f8
1 changed files with 10 additions and 1 deletions
11
x/xinitrc
11
x/xinitrc
|
@ -52,7 +52,16 @@ fi
|
|||
#### Custom ########
|
||||
|
||||
# Set external monitor config
|
||||
xrandr --output VGA1 --primary --above LVDS1
|
||||
if [[ "$(xrandr | awk '/^VGA/ { print $2 }')" == "connected" ]]; then
|
||||
xrandr --output VGA1 --primary --above LVDS1
|
||||
elif [[ "$(xrandr | awk '/^DP1/ { print $2 }')" == "connected" ]];then
|
||||
xrandr --output DP1 --primary --above LVDS1
|
||||
else :
|
||||
fi
|
||||
|
||||
# xrandr --output VGA1 --primary --above LVDS1
|
||||
# xrandr --output DP1 --primary --above LVDS1
|
||||
#source "{$HOME}/bash_scripts/connect_monitors.sh"
|
||||
|
||||
# Set UK keyboard
|
||||
setxkbmap gb
|
||||
|
|
Loading…
Add table
Reference in a new issue