dotfiles/config/i3/autorandrloadmenu
2018-08-17 15:34:09 +02:00

11 lines
228 B
Bash
Executable file

#!/usr/bin/env bash
shopt -s nullglob globstar
profile=$(echo -e "common\nhorizontal\nvertical\n$(autorandr 2>&1 | cut -d' ' -f1)" | rofi -dmenu -p "Load profile" "$@")
[[ -n $profile ]] || exit
autorandr --load "$profile"