BrinkerVII icon

Laptop XRANDR resolution overclocking

BrinkerVII | PRO | 10/25/17 01:42:48 PM UTC | 0 ⭐ | 535 👁️ | Never ⏰ | []
Bash |

500 B

|

None

|

0 👍

/

0 👎

#!/bin/bash
 
RES=$(
    zenity --list \
        --title="Choose your new resolution" \
        --radiolist \
        --column="" --column="Resolution" --column="Alias" \
        0 "1366x768" "HD" \
        1 "1920x1080" "FULL HD" \
        2 "3840x2160" "4k UHD ULTRA SWAG" \
        3 "7680x4320" "8K HOLY SHIT" \
        4 "15360x8640" "16k WTF"
)
 
if [ ! -z $RES ]; then
    RANDR=$(xrandr --output LVDS1 --scale-from $RES --panning $RES)
    if [ ! -z $RANDR ]; then
        zenity --notification \
            --window-icon="error" \
            --text=$RES
    fi
fi

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎