Skip to content

Simple bash script that helps to change resolutions in linux more easily using configurable labels and creating modelines on the fly.

Notifications You must be signed in to change notification settings

philippkemmeter/set-resolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

set-resolution

This is a simple Bash script that helps to change resolutions in linux systems.

Features are:

  • Modeline adding on the fly
  • Configurable labels for easy use

Examples

set-resolution VGA2 300x300
set-resolution Virtual7 300x300
set-resolution 1280x700  # uses the first connected output

You could practically use any silly resolution. Useful for virtual machines.

Labels

Labels are configured in ~/.resolution-labels like this

beamer=1280x720
laptop=1980x1050

So just label, =, resolution, newline :) You can use formatting spaces or tabs of course.

You may now also call

set-resolution beamer
set-resolution laptop

set-resolution Virtual3 laptop

and it'll use the configured resolution.

Internal stuff and dependancies

It uses xrandr to change the resolution. If the resolution is not being found, its modeline is generated using cvt, added using xrandr, and then selected.

Therefore xrandr needs to be installed.

Tested with xrandr 1.4.

About

Simple bash script that helps to change resolutions in linux more easily using configurable labels and creating modelines on the fly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages