#!/bin/sh wal=$(sxiv -o -t ~/stf/wals/) [ "$wal" == "" ] && dunstify "ERROR: No wallpaper was selected" && exit 1 [ $(echo "$wal" | wc -l) -gt 1 ] && dunstify "ERROR: More than 1 wallpaper selected" && exit 1 sed -i "s|/home/monoblanco/stf/wals/.*|$wal\"|g" ~/.config/feh/.fehbg && source ~/.config/feh/.fehbg wal -i "$wal" sh walnewsboat.sh