diff options
Diffstat (limited to 'tessen')
-rwxr-xr-x | tessen | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -443,21 +443,21 @@ validate_pass_backend() { validate_dmenu_backend() { if ! is_installed "$1"; then - _die "please install a valid dmenu backend: fuzzel | tofi | bemenu | yofi | wofi | rofi | dmenu" + _die "please install a valid dmenu backend: fuzzel | tofi | mew | yofi | wofi | rofi | dmenu" fi - local -a bemenu_opts + local -a mew_opts case "$1" in fuzzel) _DMENU_BACKEND="fuzzel" _DMENU_BACKEND_OPTS=('-d' '--log-level=warning') ;; - bemenu) - _DMENU_BACKEND="bemenu" + mew) + _DMENU_BACKEND="mew" _DMENU_BACKEND_OPTS=() - bemenu_opts=('-l' '10' '-n') + mew_opts=('-l' '10' '-n') if [[ -z ${BEMENU_OPTS[*]} ]]; then - export BEMENU_OPTS="${bemenu_opts[*]}" + export BEMENU_OPTS="${mew_opts[*]}" fi ;; tofi) @@ -482,10 +482,10 @@ validate_dmenu_backend() { _DMENU_BACKEND_OPTS=() ;; *) - _die "please install a valid dmenu backend: fuzzel | tofi | bemenu | yofi | wofi | rofi | dmenu" + _die "please install a valid dmenu backend: fuzzel | tofi | mew | yofi | wofi | rofi | dmenu" ;; esac - unset -v bemenu_opts + unset -v mew_opts } validate_action() { @@ -545,7 +545,7 @@ find_pass_backend() { } find_dmenu_backend() { - local -a tmp_dmenu_arr=('fuzzel' 'tofi' 'bemenu' 'yofi' 'wofi' 'rofi' 'dmenu') + local -a tmp_dmenu_arr=('fuzzel' 'tofi' 'mew' 'yofi' 'wofi' 'rofi' 'dmenu') local idx for idx in "${tmp_dmenu_arr[@]}"; do @@ -555,7 +555,7 @@ find_dmenu_backend() { fi done if [[ -z $_DMENU_BACKEND ]]; then - _die "please install a valid dmenu backend: fuzzel | tofi | bemenu | yofi | wofi | rofi | dmenu" + _die "please install a valid dmenu backend: fuzzel | tofi | mew | yofi | wofi | rofi | dmenu" fi unset -v idx tmp_dmenu_arr } @@ -600,7 +600,7 @@ usage: $prog [options] -p, --pass, --pass= choose either 'pass' or 'gopass' -d, --dmenu, --dmenu= specify a dmenu backend - 'fuzzel', 'tofi', - 'bemenu', 'yofi', 'wofi', 'rofi', and 'dmenu' are supported + 'mew', 'yofi', 'wofi', 'rofi', and 'dmenu' are supported -a, --action, --action= choose either 'autotype', 'copy', or 'both' omit this option to use the default behavior -c, --config, --config= use a config file on a custom path @@ -708,26 +708,26 @@ main() { ;; -d | --dmenu) if [[ $# -lt 2 ]]; then - _die "please install a valid dmenu backend: fuzzel | tofi | bemenu | yofi | wofi | rofi | dmenu" + _die "please install a valid dmenu backend: fuzzel | tofi | mew | yofi | wofi | rofi | dmenu" fi validate_dmenu_backend "$2" readonly _DMENU_BACKEND # since there's a possibility that a user may mention config files for # dmenu backends, we will make _DMENU_BACKEND_OPTS readonly only if - # _DMENU_BACKEND is bemenu, the only dmenu program which don't support + # _DMENU_BACKEND is mew, the only dmenu program which don't support # configuration files - if [[ $_DMENU_BACKEND == "bemenu" ]] || [[ $_DMENU_BACKEND == "dmenu" ]]; then + if [[ $_DMENU_BACKEND == "mew" ]] || [[ $_DMENU_BACKEND == "dmenu" ]]; then readonly _DMENU_BACKEND_OPTS fi shift ;; --dmenu=*) if [[ -z ${_opt##--dmenu=} ]]; then - _die "please install a valid dmenu backend: fuzzel | tofi | bemenu | yofi | wofi | rofi | dmenu" + _die "please install a valid dmenu backend: fuzzel | tofi | mew | yofi | wofi | rofi | dmenu" fi validate_dmenu_backend "${_opt##--dmenu=}" readonly _DMENU_BACKEND - if [[ $_DMENU_BACKEND == "bemenu" ]] || [[ $_DMENU_BACKEND == "dmenu" ]]; then + if [[ $_DMENU_BACKEND == "mew" ]] || [[ $_DMENU_BACKEND == "dmenu" ]]; then readonly _DMENU_BACKEND_OPTS fi ;; |