Skip to content

Instantly share code, notes, and snippets.

@rikkarth
Last active June 6, 2024 21:27
Show Gist options
  • Save rikkarth/44863e97f34ea41b4bb57b84d4d32649 to your computer and use it in GitHub Desktop.
Save rikkarth/44863e97f34ea41b4bb57b84d4d32649 to your computer and use it in GitHub Desktop.
i3wm-xrandr-horizontal-and-vertical-monitor-config
# this command will configure your dual monitors for horizontal + vertical setup,
# where horizontal is primary and vertical is secondary (right)
# you can find the name of each monitor by typing 'xrandr'
xrandr --output HDMI-0 --mode 1920x1080 --pos 1920x0 --rotate right --output DP-0 --off --output DP-1 --off --output HDMI-1 --primary --mode 1920x1080 --pos 0x492 --rotate normal --output DP-2 --off --output DP-3 --off
# additionally the command bellow can be placed in .config/i3/config
exec --no-startup-id xrandr --output HDMI-0 --mode 1920x1080 --pos 1920x0 --rotate right --output DP-0 --off --output DP-1 --off --output HDMI-1 --primary --mode 1920x1080 --pos 0x492 --rotate normal --output DP-2 --off --output DP-3 --off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment