#!/bin/sh
while read file; do
  case "$1" in
    "w")
      cp "$file" ~/background.jpg
      t -r hyprpaper
      ;;
  esac
done