Forcibly add -dmenu if using rofi as $CM_LAUNCHER
This commit is contained in:
parent
497ba9c95c
commit
e315d8262c
5
clipmenu
5
clipmenu
|
@ -9,6 +9,11 @@ cache_file=$cache_dir/line_cache
|
||||||
|
|
||||||
: "${CM_LAUNCHER=dmenu}"
|
: "${CM_LAUNCHER=dmenu}"
|
||||||
|
|
||||||
|
if [[ "$CM_LAUNCHER" == rofi ]]; then
|
||||||
|
# rofi supports dmenu-like arguments through the -dmenu flag
|
||||||
|
set -- -dmenu "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $1 == --help ]]; then
|
if [[ $1 == --help ]]; then
|
||||||
cat << EOF
|
cat << EOF
|
||||||
clipmenu is a simple clipboard manager using dmenu and xsel. Launch this
|
clipmenu is a simple clipboard manager using dmenu and xsel. Launch this
|
||||||
|
|
Loading…
Reference in a new issue