dotfiles/config/i3/autorandrsavemenu

11 lines
209 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
shopt -s nullglob globstar
profile=$(echo -e "$(autorandr 2>&1 | cut -d' ' -f1)" | ~/.config/i3/dmenu_cmd -p "Save profile" "$@")
[[ -n $profile ]] || exit
autorandr --save "$profile"