2-screen fallback for xprofile
This commit is contained in:
parent
2e35ac133a
commit
13142f1f85
2 changed files with 16 additions and 2 deletions
16
xprofile
16
xprofile
|
@ -1,11 +1,26 @@
|
|||
#setxkbmap -layout se
|
||||
|
||||
# DisplayPort-1 is for the VR headset
|
||||
|
||||
xrandr \
|
||||
--output DisplayPort-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --set TearFree on \
|
||||
--output DisplayPort-1 --off \
|
||||
--output HDMI-A-1 --mode 1920x1080 --pos 0x0 --rotate normal --set TearFree on \
|
||||
--output VGA-1-1 --mode 1280x1024 --pos 3840x0 --rotate normal
|
||||
|
||||
# if left screen is missing, try the 2-monitor setup
|
||||
if [ $? ]; then
|
||||
xrandr \
|
||||
--output DisplayPort-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --set TearFree on \
|
||||
--output DisplayPort-1 --off \
|
||||
--output HDMI-A-1 --off \
|
||||
--output VGA-1-1 --mode 1280x1024 --pos 3840x0 --rotate normal
|
||||
fi
|
||||
|
||||
|
||||
# VGA doesn't allow tearfree :(
|
||||
|
||||
#### old configs
|
||||
|
||||
# xrandr \
|
||||
# --output DisplayPort-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --set TearFree on \
|
||||
|
@ -15,7 +30,6 @@ xrandr \
|
|||
|
||||
# --output DisplayPort-4 --mode 1920x1080 --pos 0x0 --rotate normal --set TearFree on \
|
||||
|
||||
# VGA doesn't allow tearfree :(
|
||||
|
||||
|
||||
# xrandr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue