Advertisement
Guest User

Untitled

a guest
Apr 17th, 2021
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ -z $1 ]
  4. then
  5. 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
  6. else
  7. if [ $1 = "-h" ] || [ $1 = "-help" ]
  8. then
  9. echo SetScreen command to set the triple screens depending the need. Using : SetScreen \<Option\>
  10. echo h,help, get help menu
  11. echo n normal mode with triple screen
  12. echo g game mode only two extrem end screens
  13. echo w work mode only the left screens
  14. echo default mode = normal mode with triple screen
  15. fi
  16.  
  17. if [ $1 = "-n" ] || [ $1 = "n" ]
  18. then
  19. 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
  20. fi
  21.  
  22. if [ $1 = "-g" ] || [ $1 = "g" ]
  23. then
  24. 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
  25. # If scream is not started
  26. if [ -z "`ps -aux | grep scream$`" ]
  27. then
  28. scream
  29. fi
  30. fi
  31.  
  32. if [ $1 = "-w" ] || [ $1 = "w" ]
  33. then
  34. 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
  35. fi
  36.  
  37. if [ -z $1 ]
  38. then
  39. 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
  40. fi
  41. fi
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement