Forcibly add -dmenu if using rofi as $CM_LAUNCHER

This commit is contained in:
Chris Down 2017-03-19 08:00:27 +00:00
parent 497ba9c95c
commit e315d8262c

View file

@ -9,6 +9,11 @@ cache_file=$cache_dir/line_cache
: "${CM_LAUNCHER=dmenu}"
if [[ "$CM_LAUNCHER" == rofi ]]; then
# rofi supports dmenu-like arguments through the -dmenu flag
set -- -dmenu "$@"
fi
if [[ $1 == --help ]]; then
cat << EOF
clipmenu is a simple clipboard manager using dmenu and xsel. Launch this