Skip to content

Instantly share code, notes, and snippets.

@simonfontana
Created October 20, 2025 08:28
Show Gist options
  • Select an option

  • Save simonfontana/0553e2c78dd1ff0076d45cb56153e83b to your computer and use it in GitHub Desktop.

Select an option

Save simonfontana/0553e2c78dd1ff0076d45cb56153e83b to your computer and use it in GitHub Desktop.
Virtual monitors in i3
# Setup for i3 on laptop (1920x1080) + ultrawide (3440x1440)
# Splits ultrawide into 2 virtual 1720x1440 monitors, laptop on left
xrandr --delmonitor DP-1-left; xrandr --delmonitor DP-1-right; \
xrandr --setmonitor DP-1-left 1720/800x1440/340+1920+0 DP-1; \
xrandr --setmonitor DP-1-right 1720/800x1440/340+3640+0 none
# After running, refresh i3 with Mod+Shift+R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment