Files

33 lines
562 B
Bash
Executable File

#!/usr/bin/env bash
# rofi theme
dir_theme="$HOME/.config/rofi/compact_without_icons.rasi"
DIR="/usr/local/bin/themes"
get_options_theme_polybar() {
echo "polybar-square"
echo "polybar-rounded"
}
main() {
# Get theme_polybar from rofi
theme_polybar=$( (get_options_theme_polybar) | rofi -dmenu -i -fuzzy -p "" -theme "$dir_theme")
# If user has not picked anything, exit
if [[ -z "${theme_polybar// /}" ]]; then
exit 1
fi
cp -f $DIR/$theme_polybar/launch.sh ~/.config/polybar
# done
set -e
i3-msg restart
}
main &
exit 0