#!/bin/sh if [ "$MENUCMD" = "tofi" ] then menucmd="tofi --width 30% --height 50% --anchor bottom-right --matching-algorithm normal" elif [ "$MENUCMD" = "dmenu" ] then menucmd="dmenu -l 10 -g 1 -x -i" else menucmd="fzf" fi cliphist list | $menucmd | cliphist decode | wl-copy -n