Skip to content

Script to automatically setup secondary monitors, Uses xrandr and env variables to determine monitor and positioning Checks if display is connected using grep to find non-primary output

Notifications You must be signed in to change notification settings

thoth2357/monitor_setup_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Script to automatically setup secondary monitors

Uses xrandr and env variables to determine monitor and positioning

Checks if display is connected using grep to find non-primary output

Gets positioning using env variable MONITOR_POSITION

Arguments: default: does nothing off: switches off secondary display on: switches on secondary display Get primary display

Script Purpose: Due to my funny kind of setup which is arch linux and an i3WM so when power goes off from the monitor , i automatically can't have access to those workspaces on the monitors, so this script helps me to reset it all back.

See Beautiful Setup that prompted the writing of the script.

20230111_223229

About

Script to automatically setup secondary monitors, Uses xrandr and env variables to determine monitor and positioning Checks if display is connected using grep to find non-primary output

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages