adi1090x / polybar-themes

A huge collection of polybar themes with different styles, colors and variants.
GNU General Public License v3.0
5.59k stars 407 forks source link

feat: support no-prompt setup #195

Open fragoulis opened 1 year ago

fragoulis commented 1 year ago

Allow for polybar themes to be installed as part of an automated process.

With this commit, the user can pass the style by setting the env var STYLE when calling setup, in which case the prompt does not show.

Examples:

# works
STYLE=simple ./setup.sh
# fails
STYLE=foo ./setup.sh
# prompts
STYLE= ./setup.sh
# prompts
./setup.sh