11 lines
239 B
Plaintext
11 lines
239 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
shopt -s nullglob globstar
|
||
|
|
||
|
profile=$(echo -e "common\nhorizontal\nvertical\n$(autorandr 2>&1 | cut -d' ' -f1)" | ~/.config/i3/dmenu_cmd -p "Load profile" "$@")
|
||
|
|
||
|
[[ -n $profile ]] || exit
|
||
|
|
||
|
autorandr --load "$profile"
|
||
|
|