https://github.com/thoth2357/monitor_setup_script
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
https://github.com/thoth2357/monitor_setup_script
bash-script i3wm linux monitor tools
Last synced: 3 months ago
JSON representation
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
- Host: GitHub
- URL: https://github.com/thoth2357/monitor_setup_script
- Owner: thoth2357
- Created: 2022-09-23T07:20:08.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T11:08:10.000Z (over 3 years ago)
- Last Synced: 2025-02-25T08:33:39.214Z (over 1 year ago)
- Topics: bash-script, i3wm, linux, monitor, tools
- Language: Shell
- Homepage:
- Size: 4.2 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.
