#!/bin/bash CUR_WP_LOC=~/.local/system/ while read file do case "$1" in "w") setbg $file;cp $file ~/pix/system/bg.png;; "r") mv $file /home/rasmus/.trash/;; esac done