#!/usr/bin/env bash

shopt -s nullglob globstar

profile=$(echo -e "common\nclone-largest\nhorizontal\nvertical\n$(autorandr 2>&1 | cut -d' ' -f1)" | rofi -dmenu -p "Load profile" "$@")

[[ -n $profile ]] || exit

autorandr --load "$profile"