Adding bottom theme

This commit is contained in:
Stephan Raabe
2023-10-09 19:54:14 +02:00
parent 3d90068978
commit e7c3802003
16 changed files with 207 additions and 8 deletions
+4 -4
View File
@@ -1,11 +1,11 @@
#!/bin/bash
options=$(find ~/dotfiles/waybar/styles/ -maxdepth 2 -type d)
options=$(find ~/dotfiles/waybar/themes/ -maxdepth 2 -type d)
listThemes=""
for value in $options
do
if [ ! $value == "$HOME/dotfiles/waybar/styles/" ]; then
if [ ! $value == "$HOME/dotfiles/waybar/themes/" ]; then
if [ $(find $value -maxdepth 1 -type d | wc -l) = 1 ]; then
result=$(echo $value | sed "s#$HOME/dotfiles/waybar/styles/#/#g")
result=$(echo $value | sed "s#$HOME/dotfiles/waybar/themes/#/#g")
IFS='/' read -ra arrThemes <<< "$result"
echo $arrThemes
listThemes+="/${arrThemes[1]};$result\n"
@@ -19,4 +19,4 @@ choice=$(echo -e "$listThemes" | rofi -dmenu -config ~/dotfiles/rofi/config-wall
if [ "$choice" ]; then
echo "$choice" > ~/.cache/.themestyle.sh
~/dotfiles/waybar/launch.sh
fi
fi