This tool helps users set custom resolutions to monitors that aren't available by default (using xrandr
).
NOTE: This script only works on X11
# This sets a custom resolution to HDMI-1
~$ setcustomres -w 1920 -h 1080 -o HDMI-1
# This sets a custom resolution to DP-1 and maps it to the right of VGA-1
~$ setcustomres -width 1366 -height 768 -output DP-1 -param "--right-of VGA-1"
# This sets a custom resolution to VGA-2 and makes it the primary screen
~$ setcustomres -w 1680 -h 1050 -o VGA-2 -p "--primary"
# This sets a custom resolution to HDMI-1 with a refresh rate of 120Hz
~$ setcustomres -w 1600 -h 900 -o HDMI-1 -r 120
# Update 'setcustomres'
~$ setcustomres -u /path/to/setcustomres
# Clone github repository
git clone https://www.github.com/MisconceivedSec/setcustomres.git
# Install
cd setcustomres
sudo ./setup.sh install
# Uninstall
sudo ./setup.sh uninstall
You may install setcustomres
from the AUR:
# Using 'yay'
yay -S setcustomres
# Using 'pamac'
pamac install setcustomres
# Manually
git clone https://aur.archlinux.org/setcustomres.git
cd setcustomres
makepkg PKGBUILD