All Projects β†’ ashwinvis β†’ Xrandr Extend

ashwinvis / Xrandr Extend

Licence: other
πŸ’»βž‘οΈ Extend a HIDPI screen to a normal DPI external display

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Xrandr Extend

Egpu Switcher
πŸ–₯🐧 Setup script for eGPUs in Linux (Xorg)
Stars: ✭ 252 (+211.11%)
Mutual labels:  hacktoberfest, x11
Frankenwm
πŸ–ΌοΈ Fast dynamic tiling X11 window manager
Stars: ✭ 209 (+158.02%)
Mutual labels:  hacktoberfest, x11
Gentoo Rust
[MIRROR] Rust packages
Stars: ✭ 79 (-2.47%)
Mutual labels:  hacktoberfest
Commudle Ng
World's first community management platform. And it's free!
Stars: ✭ 81 (+0%)
Mutual labels:  hacktoberfest
Jpeg Decoder
JPEG decoder written in Rust
Stars: ✭ 80 (-1.23%)
Mutual labels:  hacktoberfest
Pentydesktopassistant
Penty is a small Desktop Assistant programmed with JS and Python as its backend and HTML and CSS as its front. Took just over a month to create v1.0. It has a few features, like an in-built gMail sender and a quick-open browser.
Stars: ✭ 80 (-1.23%)
Mutual labels:  hacktoberfest
Vpk
πŸ“¦ Open, Search, Extract and Create VPKs in python
Stars: ✭ 79 (-2.47%)
Mutual labels:  hacktoberfest
Ompi
Open MPI main development repository
Stars: ✭ 1,221 (+1407.41%)
Mutual labels:  hacktoberfest
Flutter web auth
Flutter plugin for authenticating a user with a web service
Stars: ✭ 81 (+0%)
Mutual labels:  hacktoberfest
Greenswitch
Battle proven FreeSWITCH Event Socket Protocol client implementation with Gevent
Stars: ✭ 80 (-1.23%)
Mutual labels:  hacktoberfest
Kde
[MIRROR] KDE team's testing overlay
Stars: ✭ 80 (-1.23%)
Mutual labels:  hacktoberfest
Vkmark
Vulkan benchmark
Stars: ✭ 80 (-1.23%)
Mutual labels:  x11
Mattermost Plugin Gitlab
GitLab plugin for Mattermost
Stars: ✭ 80 (-1.23%)
Mutual labels:  hacktoberfest
Theodinproject
Main Website for The Odin Project
Stars: ✭ 1,227 (+1414.81%)
Mutual labels:  hacktoberfest
Iis
Development repository for the iis cookbook
Stars: ✭ 79 (-2.47%)
Mutual labels:  hacktoberfest
Ign Gazebo
Open source robotics simulator. Through Ignition Gazebo users have access to high fidelity physics, rendering, and sensor models. Additionally, users and developers have multiple points of entry to simulation including a graphical user interface, plugins, and asynchronous message passing and services. Ignition Gazebo is derived from Gazebo, and represents over 16 years of development and experience in robotics and simulation. This library is part of the Ignition Robotics project.
Stars: ✭ 81 (+0%)
Mutual labels:  hacktoberfest
Plots.jl
Powerful convenience for Julia visualizations and data analysis
Stars: ✭ 1,225 (+1412.35%)
Mutual labels:  hacktoberfest
Bootstrap Form Builder
πŸ”– A drag-and-drop form builder for Bootstrap 4.
Stars: ✭ 79 (-2.47%)
Mutual labels:  hacktoberfest
Udoit
The Universal Design Online content Inspection Tool, or UDOIT (pronounced, β€œYou Do It”) enables faculty to identify accessibility issues in Canvas by Instructure. It will scan a course, generate a report, and provide resources on how to address common accessibility issues.
Stars: ✭ 80 (-1.23%)
Mutual labels:  hacktoberfest
Dockest
Docker + Jest integration testing for Node.js
Stars: ✭ 81 (+0%)
Mutual labels:  hacktoberfest

xrandr-extend

image python versions image

Extend a HIDPI screen to a normal DPI external display. This command line tool implements various solutions described in the HIDPI Arch Linux wiki page.

  • Free software: GNU General Public License v3

asciicast

Installation

pip install xrandr-extend --user

or alternatively use pipx:

pipx install xrandr-extend

Configuration

python -m xrandr_extend.config

This creates a file ~/.config/xrandr-extend.cfg which looks like this:

[provider:modesetting]
primary = eDP-1
hdmi = HDMI-1
vga = DP-1

[provider:intel]
primary = eDP1
hdmi = HDMI1
vga = DP1

[resolutions]
primary = 3200, 1800
hdmi = 1920, 1080
vga = 1920, 1200

# [scaling]
# primary = 1.0
# hdmi = 2.0
# vga = 2.0

The first few sections have the name in the format [provider:display_driver]. Run xrandr --listproviders to find what your system has. The values in this section should be given as profile = monitor_name, as in the output of xrandr --listmonitors command. You may even remove existing sections and add more sections for your display driver.

Each line in the [resolutions] section signifies a resolution profile in the format profile = [width_in_pixels, height_in_pixels]. The profile primary should contain the resolution of your built-in display. You may edit or remove the remaining values hdmi and vga.

The [scaling] section contains the scale factors, which if uncommented, overrides the scale factor computed from the resolutions.

Quick reference

usage: xrandr-extend [-h] [-p PRI_RES PRI_RES] [-e EXT_RES EXT_RES]
                     [-x EXT_SCALE] [-m] [-n] [-o] [-s] [-d]
                     profile

Extend a HIDPI screen to a normal DPI external display

positional 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_RES
                        Modify preset resolution of primary display (default:
                        3200, 1800)
  -e EXT_RES EXT_RES, --ext-res EXT_RES EXT_RES
                        Modify preset resolution of external display (default
                        based on profile)
  -x EXT_SCALE, --ext-scale EXT_SCALE
                        Sets the scale factor of external display (DPI of
                        primary display / DPI of external display), overriding
                        scale 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 it

Examples
--------
# Built-in options or user-configured options are used when only the display
# profile is mentioned

$ xrandr-extend --dry-run vga
$ xrandr-extend vga
$ xrandr-extend hdmi

# Other options to extend the display

$ xrandr-extend --pan hdmi
$ xrandr-extend --only hdmi
$ xrandr-extend -e 1024 768 -n vga  # Pan with custom external resolution
$ xrandr-extend -x 2.0 hdmi         # Custom scale factor

Credits

This package was created with Cookiecutter and the ashwinvis/cookiecutter-pypackage project template.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].