#! /bin/bash
set -e

if [ -e "$1" ]; then
  exec swaybg --image "$1" --mode fill --output '*'
else
  exec swaybg --color '#3f3f3f' --output '*'
fi
