theme selector and powermenu

This commit is contained in:
Tiago Sousa 2024-03-15 21:21:25 +00:00
parent 83e8e09329
commit 867117f297
Signed by: tiago
SSH key fingerprint: SHA256:odOD9vln9U7qNe1R8o3UCbE3jkQCkr5/q5mgd5hwua0
2 changed files with 17 additions and 4 deletions

View file

@ -10,8 +10,9 @@ theme_options=(
# rofi script to get what theme to use
chosen=$(printf '%s\n' "${theme_options[@]}" | rofi -dmenu -p "Theme" -theme-str "configuration {show-icons:false;}")
if [[ $chosen == "-" ]]; then
exit 1
if [[ $chosen == "" ]]; then
exit 0
fi
theme=$(echo "${chosen}" | rev | cut -d- -f2- | rev)