skynet/scripts/change-resolution

14 lines
311 B
Bash
Executable file

#!/usr/bin/env bash
SELF="$(dirname "$0")/$(basename "$0")"
# An option was passed, so let's check it
if [ ! "$@" ]
then
choice="$("$SELF" -select | fuzzel --dmenu)"
if [ -n "$choice" ]; then
wlr-randr --output HDMI-A-1 --mode "$choice"
fi
else
echo "3440x1440@59.973Hz"
echo "1920x1080@60Hz"
fi