jgwallpaperchanger

This commit is contained in:
Daniel Napora 2025-01-13 01:44:46 +01:00
parent e1a5953519
commit 8df4cd83b2

View File

@ -46,8 +46,8 @@ CNF_FILE="$HOME/.config/mabox/wallp_dirs.conf"
if [ ! -f $CNF_FILE ]; then if [ ! -f $CNF_FILE ]; then
cat <<EOF > ${CNF_FILE} cat <<EOF > ${CNF_FILE}
# User wallpapers directories - one per line # User wallpapers directories - one per line
# Used by "Choose wallpaper" PCmanFM wrapper # Used by "Random", "Choose wallpaper" PCmanFM wrapper, "Slideshow", Preview and set" utils
# Set wallpapers using context (right click) menu in file manager # From File Manager set wallpapers using context (right click) menu
~/wallpapers/ ~/wallpapers/
EOF EOF
fi fi
@ -207,7 +207,7 @@ esac
help="\nBased on <a href='https://forum.maboxlinux.org/t/chwp-desktop-wallpaper-changer/496'>idea</a> of Mabox forum member Shwaybo.\n\nchange wallpapers from a directory, never using the same picture twice until all the pictures have been shown, and rotating x number of seconds (configurable) before the next wallpaper change.\n" help="\nBased on <a href='https://forum.maboxlinux.org/t/chwp-desktop-wallpaper-changer/496'>idea</a> of Mabox forum member Shwaybo.\n\nchange wallpapers from a directory, never using the same picture twice until all the pictures have been shown, and rotating x number of seconds (configurable) before the next wallpaper change.\n"
out+=("^sep($_WALLPAPERS)") out+=("^sep($_WALLPAPERS)")
[[ "$1" == "-s" || "$1" == "ipc" ]] && : || out+=("^sep($_WALLPAPERS)") [[ "$1" == "-s" || "$1" == "ipc" || "$1" == "-d" ]] && : || out+=("^sep($_WALLPAPERS)")
if ! pgrep -f "mbwallpaper -s" > /dev/null; then if ! pgrep -f "mbwallpaper -s" > /dev/null; then
#out+=("$NITROGEN,nitrogen") #out+=("$NITROGEN,nitrogen")
out+=("<big></big> $_RANDWALL,mbwallpaper -o;$me") out+=("<big></big> $_RANDWALL,mbwallpaper -o;$me")
@ -549,5 +549,5 @@ printf '%s\n' "${out2[@]}"
case "$1" in case "$1" in
lclick) lclick;; lclick) lclick;;
*) time main "$@";; *) main "$@";;
esac esac