clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 5110fed19c5c29c525f74bd521c191b683239d1e
parent 9c16837227e9f90226ee7b6af1be71277389a26c
Author: Chris Down <chris@chrisdown.name>
Date:   Mon, 30 Mar 2020 17:18:29 +0100

clipmenu: Add support for CM_LAUNCHER=fzf

Closes #122.

Diffstat:
Mclipmenu | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/clipmenu b/clipmenu @@ -28,6 +28,12 @@ EOF exit 0 fi + +# Blacklist of non-dmenu launchers +if [[ "$CM_LAUNCHER" != fzf ]]; then + set -- -l "${CM_HISTLENGTH}" "$@" +fi + # rofi supports dmenu-like arguments through the -dmenu flag [[ "$CM_LAUNCHER" == rofi ]] && set -- -dmenu "$@" @@ -43,7 +49,7 @@ if [[ "$CM_LAUNCHER" == rofi-script ]]; then exit fi else - chosen_line=$(list_clips | "$CM_LAUNCHER" -l "${CM_HISTLENGTH}" "$@") + chosen_line=$(list_clips | "$CM_LAUNCHER" "$@") fi [[ $chosen_line ]] || exit 1