Skip to content

Instantly share code, notes, and snippets.

@aamsur
Created November 13, 2020 03:17
Show Gist options
  • Save aamsur/1afd8e4de6fafb88ad50bc80efe389de to your computer and use it in GitHub Desktop.
Save aamsur/1afd8e4de6fafb88ad50bc80efe389de to your computer and use it in GitHub Desktop.
Custom xrandr resolution 1600x900
#!/bin/bash
# xrandr only works in X11 sessions, not Wayland
[ "$XDG_SESSION_TYPE" = x11 ] || exit 0
xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
xrandr --verbose --addmode eDP-1 "1600x900_60.00"
sleep 10;
xrandr --output eDP-1 --mode "1600x900_60.00"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment