#!/bin/sh while IFS= read -r file; do case "$1" in w) wallpaper-set "$file" ;; e) setsid -f gimp "$file" ;; y) xclip -sel clip -t image/png "$file" notify-send "nsxiv" "Copied ${file##*/} to the clipboard." ;; esac done