This commit is contained in:
Stephan Raabe 2024-03-20 11:08:37 +01:00
parent f1e2f2605c
commit c179958abf
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -22,6 +22,7 @@ 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