dotfiles/.scripts/resolution.sh
2020-10-20 12:09:08 +07:00

13 lines
405 B
Bash
Executable file

#!/bin/dash
choices="1366x768
1360x765
1280x720"
chosen=$(echo -e "$choices" | rofi -dmenu -i -theme ~/.config/rofi/theme/sidebar)
[ -z "$chosen" ] && exit 0
case "$chosen" in
1360x765) xrandr --output VGA1 --mode 1360x765_60.00 && notify-send "Resolution has been changed to" "1360x765";;
*) xrandr --output VGA1 --mode $chosen && notify-send "Resolution has been changed to" "$chosen";;
esac