Updates
This commit is contained in:
parent
68436e2b26
commit
d82c423eb9
@ -13,7 +13,6 @@
|
|||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
figlet "Updates"
|
figlet "Updates"
|
||||||
EOF
|
|
||||||
|
|
||||||
_isInstalledYay() {
|
_isInstalledYay() {
|
||||||
package="$1";
|
package="$1";
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# | | | | | | __/ | | | | | __/\__ \\ V V /| | || (__| | | | __/ |
|
# | | | | | | __/ | | | | | __/\__ \\ V V /| | || (__| | | | __/ |
|
||||||
# |_| |_| |_|\___|_| |_| |_|\___||___/ \_/\_/ |_|\__\___|_| |_|\___|_|
|
# |_| |_| |_|\___|_| |_| |_|\___||___/ \_/\_/ |_|\__\___|_| |_|\___|_|
|
||||||
#
|
#
|
||||||
# by Stephan Raabe (2023)
|
# by Stephan Raabe (2024)
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
@ -25,16 +25,18 @@ listNames=""
|
|||||||
options=$(find $themes_path -maxdepth 2 -type d)
|
options=$(find $themes_path -maxdepth 2 -type d)
|
||||||
for value in $options
|
for value in $options
|
||||||
do
|
do
|
||||||
if [ ! $value == "$themes_path" ]; then
|
if [ ! $value == "$HOME/dotfiles/waybar/themes/assets" ]; then
|
||||||
if [ $(find $value -maxdepth 1 -type d | wc -l) = 1 ]; then
|
if [ ! $value == "$themes_path" ]; then
|
||||||
result=$(echo $value | sed "s#$HOME/dotfiles/waybar/themes/#/#g")
|
if [ $(find $value -maxdepth 1 -type d | wc -l) = 1 ]; then
|
||||||
IFS='/' read -ra arrThemes <<< "$result"
|
result=$(echo $value | sed "s#$HOME/dotfiles/waybar/themes/#/#g")
|
||||||
listThemes[${#listThemes[@]}]="/${arrThemes[1]};$result"
|
IFS='/' read -ra arrThemes <<< "$result"
|
||||||
if [ -f $themes_path$result/config.sh ]; then
|
listThemes[${#listThemes[@]}]="/${arrThemes[1]};$result"
|
||||||
source $themes_path$result/config.sh
|
if [ -f $themes_path$result/config.sh ]; then
|
||||||
listNames+="$theme_name\n"
|
source $themes_path$result/config.sh
|
||||||
else
|
listNames+="$theme_name\n"
|
||||||
listNames+="/${arrThemes[1]};$result\n"
|
else
|
||||||
|
listNames+="/${arrThemes[1]};$result\n"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user