diff --git a/hypr/scripts/wallpaper.sh b/hypr/scripts/wallpaper.sh index 7ae003c..144fcab 100755 --- a/hypr/scripts/wallpaper.sh +++ b/hypr/scripts/wallpaper.sh @@ -45,11 +45,11 @@ case $1 in # Select wallpaper with rofi "select") - + sleep 0.2 selected=$( find "$HOME/wallpaper" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) -exec basename {} \; | sort -R | while read rfile do echo -en "$rfile\x00icon\x1f$HOME/wallpaper/${rfile}\n" - done | $(sleep 0.2; rofi -dmenu -replace -config ~/dotfiles/rofi/config-wallpaper.rasi)) + done | rofi -dmenu -replace -config ~/dotfiles/rofi/config-wallpaper.rasi) if [ ! "$selected" ]; then echo "No wallpaper selected" exit diff --git a/waybar/themeswitcher.sh b/waybar/themeswitcher.sh index ccb77d6..22255d5 100755 --- a/waybar/themeswitcher.sh +++ b/waybar/themeswitcher.sh @@ -21,7 +21,8 @@ listNames="" # ----------------------------------------------------- # Read theme folder -# ----------------------------------------------------- +# ----------------------------------------------------- +sleep 0.2 options=$(find $themes_path -maxdepth 2 -type d) for value in $options do @@ -46,7 +47,7 @@ done # Show rofi dialog # ----------------------------------------------------- listNames=${listNames::-2} -choice=$(echo -e "$listNames" | $(sleep 0.2; rofi -dmenu -replace -config ~/dotfiles/rofi/config-themes.rasi -no-show-icons -width 30 -p "Themes" -format i)) +choice=$(echo -e "$listNames" | rofi -dmenu -replace -config ~/dotfiles/rofi/config-themes.rasi -no-show-icons -width 30 -p "Themes" -format i) # ----------------------------------------------------- # Set new theme by writing the theme information to ~/.cache/.themestyle.sh