Skip to content

Instantly share code, notes, and snippets.

@dance2die
Last active January 12, 2021 20:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dance2die/436171904e37a7a14e7fc29466f6bb77 to your computer and use it in GitHub Desktop.
Save dance2die/436171904e37a7a14e7fc29466f6bb77 to your computer and use it in GitHub Desktop.
Bash scripts to change screen resolution
#!/bin/bash
xrandr --output eDP-1-1 --mode 1280x720
#!/bin/bash
xrandr --output eDP-1-1 --mode 1920x1080
# Make `resolution.sh` executable
# Create hard symlinks on the desktop
chmod +x ./resolution.sh
ln ./resolution.sh ~/Desktop/1920x1080
ln ./resolution.sh ~/Desktop/1280x720
#!/bin/bash
xrandr --output eDP-1-1 --mode $(basename $0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment