Skip to content

Instantly share code, notes, and snippets.

@JunaidQadirB
Created April 1, 2018 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JunaidQadirB/4fa82116ff44692587a956ace9f77fca to your computer and use it in GitHub Desktop.
Save JunaidQadirB/4fa82116ff44692587a956ace9f77fca to your computer and use it in GitHub Desktop.
Add new screen resolution
#!/bin/bash
# This detects the connected display
# xrandr | grep "\sconnected"
DISPLAY_ID="eDP-1"
xrandr --newmode "1280x720_60.00" 74.48 1280 1336 1472 1664 720 721 724 746
xrandr --addmode $DISPLAY_ID 1280x720_60.00
xrandr --output $DISPLAY_ID --mode 1280x720_60.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment