clipmenu

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

commit 11c48727d3723afe68eaa616d4271f0af00e05b4
parent e3e3289c9a36fa9e739361fd27f9b0378d5f4b6c
Author: Chris Down <chris@chrisdown.name>
Date:   Mon, 30 Mar 2020 19:15:30 +0100

clipmenu: Preserve ordering of arguments for rofi -dmenu

Diffstat:
Mclipmenu | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

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