#!/bin/sh item="$(cliphist list | ~/.local/bin/menu/vertical.sh -p paste)" if [ -n "$item" ]; then echo "$item" | cliphist decode | wl-copy wtype -M ctrl v -m ctrl fi