Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
Advertisement
Add Comment
Please, Sign In to add comment