Package: xrandr-extend
xrandr-extendExtend a HIDPI screen to a normal DPI external display. This command line tool
implements various solutions described in theHIDPI Arch Linux wiki
page.Free software: GNU General Public License v3Installationpipinstallxrandr-extend--useror alternatively usepipx:pipxinstallxrandr-extendConfigurationpython-mxrandr_extend.configThis creates a file~/.config/xrandr-extend.cfgwhich looks like this:[provider:modesetting]primary=eDP-1hdmi=HDMI-1vga=DP-1[provider:intel]primary=eDP1hdmi=HDMI1vga=DP1[resolutions]primary=3200, 1800hdmi=1920, 1080vga=1920, 1200# [scaling]# primary = 1.0# hdmi = 2.0# vga = 2.0# [rotation]# primary = left# hdmi = left# vga = rightThe first few sections have the name in the format[provider:display_driver].
Runxrandr --listprovidersto find what your system has. The values in this
section should be given asprofile = monitor_name, as in the output ofxrandr --listmonitorscommand. You may even remove existing sections and
add more sections for yourdisplay driver.Each line in the[resolutions]section signifies aresolution profilein
the formatprofile = [width_in_pixels, height_in_pixels].  Theprofileprimaryshould contain the resolution of your built-in display.  You may edit
or remove the remaining valueshdmiandvga.The[scaling]section contains the scale factors, which if uncommented,
overrides the scale factor computed from the resolutions.The[rotation]section specifies the directions to rotate the output contents
similarly toxrandr --rotate.Quick referenceusage: xrandr-extend [-h] [-p PRI_RES PRI_RES] [-e EXT_RES EXT_RES][-x EXT_SCALE] [-m] [-n] [-o] [-s] [-d]profileExtend a HIDPI screen to a normal DPI external displaypositional arguments:profile               Use preset external resolution profiles (available:['hdmi', 'vga']).optional arguments:-h, --help            show this help message and exit-p PRI_RES PRI_RES, --pri-res PRI_RES PRI_RESModify preset resolution of primary display (default:3200, 1800)-e EXT_RES EXT_RES, --ext-res EXT_RES EXT_RESModify preset resolution of external display (defaultbased on profile)-x EXT_SCALE, --ext-scale EXT_SCALESets the scale factor of external display (DPI ofprimary display / DPI of external display), overridingscale factor estimation from resolutions-m, --mirror          Mirror the external display-n, --pan             Pan the position of external display-o, --only            Extend and use only external display-s, --pos             Set the position of external display explicitly-d, --dry-run         Preview command without executing itExamples--------#Built-inoptionsoruser-configuredoptionsareusedwhenonlythedisplay#profileismentioned$xrandr-extend--dry-runvga$xrandr-extendvga$xrandr-extendhdmi#Otheroptionstoextendthedisplay$xrandr-extend--panhdmi$xrandr-extend--onlyhdmi$xrandr-extend-e1024768-nvga# Pan with custom external resolution$xrandr-extend-x2.0hdmi# Custom scale factorCreditsThis package was created withCookiecutterand theashwinvis/cookiecutter-pypackageproject template.History0.3.0 (2021-12-22)New option-ror--rotateto orient the external display0.2.0 (2019-07-15)New optional option-xor--ext-scalefor the scaling factor (PR #4, #5)0.1.1 (2019-05-16)Correct commandxrandr_extend->xrandr-extend0.1.0 (2019-05-16)Flicker correctionUse cookiecutter to generate src layout0.0.3Deploy to PyPIReorganize as a package and allow for configurationUsepkg_resourcesto finddefault.cfg0.0.2Simpler defaults which uses only scaling factorsParse args only inside__main__and do not run any commands during dry runLess bugs