Add support for extra themes, other small changes, drop btop
This commit is contained in:
@@ -15,11 +15,11 @@ NESTED_SWIFT_BLOCK
|
||||
)
|
||||
}
|
||||
|
||||
# TODO: decide if and how to make this work for cycling through wallpapers per theme
|
||||
|
||||
wallpaper_dir=$DIR_THEME_SETTINGS/.current-theme/wallpaper
|
||||
image_paths=($(find $wallpaper_dir -type f | sort)) 2> /dev/null
|
||||
target_wallpaper=${image_paths[@]:0:1}
|
||||
|
||||
[[ $1 = "zz-default-for-theme" ]] && target_wallpaper=${image_paths[@]:0:1} ||
|
||||
target_wallpaper=$(printf '%s\n' ${image_paths[@]} | fzf)
|
||||
[[ -z $target_wallpaper ]] && exit 0
|
||||
|
||||
[[ "$OSTYPE" = *"darwin"* ]] && set_wallpaper_macos $target_wallpaper ||
|
||||
|
||||
Reference in New Issue
Block a user