Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ -z $1 ]
- then
- xrandr --output DP2-1 --primary --mode 1920x1080 --rate 60.00 --output DP1 --mode 2560x1440 --rate 144.01 --right-of DP2-1 --output DP2-2 --mode 1920x1080 --rate 60.00 --right-of DP1
- else
- if [ $1 = "-h" ] || [ $1 = "-help" ]
- then
- echo SetScreen command to set the triple screens depending the need. Using : SetScreen \<Option\>
- echo h,help, get help menu
- echo n normal mode with triple screen
- echo g game mode only two extrem end screens
- echo w work mode only the left screens
- echo default mode = normal mode with triple screen
- fi
- if [ $1 = "-n" ] || [ $1 = "n" ]
- then
- xrandr --output DP2-1 --primary --mode 1920x1080 --rate 60.00 --output DP1 --mode 2560x1440 --rate 144.01 --right-of DP2-1 --output DP2-2 --mode 1920x1080 --rate 60.00 --right-of DP1
- fi
- if [ $1 = "-g" ] || [ $1 = "g" ]
- then
- xrandr --output DP2-1 --primary --mode 1920x1080 --rate 60.00 --output DP1 --off --output DP2-2 --mode 1920x1080 --rate 60.00 --right-of DP2-1
- # If scream is not started
- if [ -z "`ps -aux | grep scream$`" ]
- then
- scream
- fi
- fi
- if [ $1 = "-w" ] || [ $1 = "w" ]
- then
- xrandr --output DP2-1 --primary --mode 1920x1080 --rate 60.00 --output DP1 --mode 2560x1440 --rate 144.01 --right-of DP2-1 --output DP2-2 --off
- fi
- if [ -z $1 ]
- then
- xrandr --output DP2-1 --primary --mode 1920x1080 --rate 60.00 --output DP1 --mode 2560x1440 --rate 144.01 --right-of DP2-1 --output DP2-2 --mode 1920x1080 --rate 60.00 --right-of DP1
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement