dotfiles/xprofile

45 lines
1.4 KiB
Text
Raw Normal View History

2022-10-20 21:22:02 +02:00
#setxkbmap -layout se
2024-05-27 21:37:47 +02:00
# DisplayPort-1 is for the VR headset
2024-01-24 21:05:21 +01:00
xrandr \
--output DisplayPort-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --set TearFree on \
--output DisplayPort-1 --off \
2024-01-24 21:05:21 +01:00
--output HDMI-A-1 --mode 1920x1080 --pos 0x0 --rotate normal --set TearFree on \
--output VGA-1-1 --mode 1280x1024 --pos 3840x0 --rotate normal
2024-05-27 21:37:47 +02:00
# 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
2024-01-24 21:05:21 +01:00
# xrandr \
# --output DisplayPort-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --set TearFree on \
# --output DisplayPort-1 --off \
# --output HDMI-A-0 --mode 1280x1024 --pos 3840x0 --rotate normal --set TearFree on \
# --output VGA-1-1 --mode 1920x1080 --pos 0x0 --rotate normal
# --output DisplayPort-4 --mode 1920x1080 --pos 0x0 --rotate normal --set TearFree on \
# xrandr
# --output DisplayPort-0 --off
# --output DisplayPort-1 --off
# --output DisplayPort-2 --off
# --output HDMI-A-0 --mode 1280x1024 --pos 1920x56 --rotate normal
# --output DisplayPort-3 --mode 1920x1080 --pos 0x0 --rotate normal
# --output DisplayPort-4 --off
# bind super to super+esc, for menubar toggle with one key
xcape -e "Super_L=Super_L|Escape"