BrinkerVII

Laptop XRANDR resolution overclocking

Oct 25th, 2017
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. RES=$(
  4.     zenity --list \
  5.         --title="Choose your new resolution" \
  6.         --radiolist \
  7.         --column="" --column="Resolution" --column="Alias" \
  8.         0 "1366x768" "HD" \
  9.         1 "1920x1080" "FULL HD" \
  10.         2 "3840x2160" "4k UHD ULTRA SWAG" \
  11.         3 "7680x4320" "8K HOLY SHIT" \
  12.         4 "15360x8640" "16k WTF"
  13. )
  14.  
  15. if [ ! -z $RES ]; then
  16.     RANDR=$(xrandr --output LVDS1 --scale-from $RES --panning $RES)
  17.     if [ ! -z $RANDR ]; then
  18.         zenity --notification \
  19.             --window-icon="error" \
  20.             --text=$RES
  21.     fi
  22. fi
Advertisement
Add Comment
Please, Sign In to add comment