Advertisement
Guest User

Untitled

a guest
May 4th, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. seleted=$(echo "Laptop Only
  4. HDMI Only
  5. Display Port Only
  6. Dual Monitor" | rofi -dmenu -p "Select Monitor Setup: ")
  7.  
  8. echo You Picked: " $selected"
  9.  
  10. if [ "$selected" == "Laptop Only" ]; then
  11. xrandr --output eDP-1-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output HDMI-0 --off --output DP-1-2 --off --output DP-1-1 --off --output DP-0 --off
  12. exit
  13. fi
  14. if [ "$selected" == "HDMI Only" ]; then
  15. exit
  16. fi
  17. if [ "$selected" == "Display Port Only" ]; then
  18. exit
  19. fi
  20. if [ "$selected" == "Dual Monitor" ]; then
  21. xrandr --output eDP-1-1 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output DP-1 --mode 1920x1080 --pos 3840x0 --rotate normal --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1-2 --off --output DP-1-1 --off --output DP-0 --off
  22. exit
  23. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement