#!/bin/sh while read file do case "$1" in "c") cat "$file" | xclip -sel c -t image/png -i ;; "f") echo "$file" | xclip -sel c ;; "w") feh --bg-fill "$file" ;; "q") echo "$file" > ~/.config/i3/wallpaper; feh --bg-fill "$file" ;; esac done