use neosxiv by default

This commit is contained in:
speedie 2022-11-11 21:17:56 +01:00
parent dc33365b49
commit a236a8b327

View file

@ -16,7 +16,7 @@ SWAL_DEFAULT_CONFIG()
esac
SWAL_OPT=xwallpaper
SWAL_EXPORTDIR=$HOME/.config/speedwm/swal # Config directory
SWAL_IMAGE_VIEWER="sxiv -to" # Image viewer to use (<char>)
SWAL_IMAGE_VIEWER="nsxiv -ato" # Image viewer to use (<char>)
SWAL_ASK_WAL=false # Ask whether or not to use Pywal if possible (true/false)
SWAL_RANDOMIZE=false # Select a random wallpaper on login
}
@ -115,10 +115,10 @@ SWAL_CHECK()
if [ "$SWAL_IMAGE_VIEWER" = "" ]; then
if command -v feh > /dev/null; then
SWAL_IMAGE_VIEWER=feh
elif command -v sxiv > /dev/null; then
SWAL_IMAGE_VIEWER=sxiv
elif command -v nsxiv > /dev/null; then
SWAL_IMAGE_VIEWER=nsxiv
elif command -v sxiv > /dev/null; then
SWAL_IMAGE_VIEWER=sxiv
fi
fi
@ -134,8 +134,8 @@ SWAL_DIE()
# Print usage.
SWAL_USAGE() {
echo "To set a wallpaper, you must create a configuration. To do this, select 'Options' in the menu and set all the options to your liking."
echo "The image viewer must be set to an image viewer that supports printing the filename to stdout. If you use sxiv, set the image viewer to 'sxiv -o'."
echo "In the case of sxiv, This means you can press 'm' when previewing an image to select it and then set it."
echo "The image viewer must be set to an image viewer that supports printing the filename to stdout. If you use nsxiv, set the image viewer to 'nsxiv -ato'."
echo "In the case of nsxiv, This means you can press 'm' when previewing an image to select it and then set it."
echo "Once you've selected your image using the method you prefer, select how you want to set it."
echo "Then your pywal colors will reload, and the wallpaper will be set."
echo "For more information, see speedwm-help -a."