#!/usr/bin/env sh # required packages: # - sxiv SELECT=$(sxiv -N "floatme" -t -o ~/pictures/wallpapers | tail -n1 ) SCRIPT=$(readlink -f "$0") SCRIPTPATH=$(dirname "$SCRIPT") $SCRIPTPATH/set-bg.sh "$SELECT"