From dad052e6b3e45910dff5bc1ac0a53ecbb1456538 Mon Sep 17 00:00:00 2001 From: awy Date: Fri, 15 Aug 2025 20:55:05 +0300 Subject: Change bemenu to mew --- CHANGELOG.md | 6 +++--- README.md | 8 ++++---- completion/tessen.fish-completion | 2 +- config | 2 +- man/tessen.1.scd | 10 +++++----- man/tessen.5.scd | 4 ++-- tessen | 32 ++++++++++++++++---------------- 7 files changed, 32 insertions(+), 32 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb26737..db5445c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,7 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - implemented custom actions mapped to exit codes greater than and equal to 10, this feature is - supported, at the very least, by fuzzel, bemenu, and rofi + supported, at the very least, by fuzzel, mew, and rofi - add support for using a custom configuration file for the fuzzel dmenu backend, this feature is supported by fuzzel since its [1.8.0 release](https://codeberg.org/dnkl/fuzzel/releases/tag/1.8.0) @@ -71,7 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- remove the default options `-w`, `--scrollbar=autohide`, and `-i` from the bemenu configuration +- remove the default options `-w`, `--scrollbar=autohide`, and `-i` from the mew configuration ## [2.1.2] - 2022-04-02 @@ -236,7 +236,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- bemenu is no longer the default dmenu backend +- mew is no longer the default dmenu backend - the username will be set from the `TESSEN_USERKEY` environment variable and if that is unset, the basename of the selected file will be used as the username diff --git a/README.md b/README.md index 2b0b6f9..8081bba 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ recognized - [fuzzel][4] - [tofi][15] -- [bemenu][5] +- [mew][5] - [yofi][32] - [wofi][6] - [rofi][3] @@ -55,7 +55,7 @@ If you want to add another Wayland native dmenu not mentioned above, please see - at least one pass backend is needed - either [password-store][1] or [gopass][2] -- at least one Wayland native dmenu backend, preferably [fuzzel][4], or [tofi][15], [bemenu][5], +- at least one Wayland native dmenu backend, preferably [fuzzel][4], or [tofi][15], [mew][5], [yofi][32], [wofi][6], [rofi][3] - at least one (or both if needed) action backend - [wtype][17] or [wl-clipboard][18] @@ -171,7 +171,7 @@ unattractive. ## Why did you choose this weird name? Because obvious names like pass-fzf and pass-clip are already taken by other projects? Also, for -some reason, the way how bemenu and fuzzel's UI instantly opens up and displays relevant information +some reason, the way how mew and fuzzel's UI instantly opens up and displays relevant information reminded me of Japanese hand fans. I guess I was thinking of some anime while coming up with this name. @@ -197,7 +197,7 @@ Please see the [CONTRIBUTING.md file.][7] [2]: https://github.com/gopasspw/gopass [3]: https://github.com/lbonn/rofi [4]: https://codeberg.org/dnkl/fuzzel -[5]: https://github.com/Cloudef/bemenu +[5]: https://github.com/Cloudef/mew [6]: https://hg.sr.ht/~scoopta/wofi [7]: https://git.sr.ht/~ayushnix/tessen/tree/master/item/CONTRIBUTING.md [8]: https://swaywm.org/ diff --git a/completion/tessen.fish-completion b/completion/tessen.fish-completion index 2432046..ea2eae5 100644 --- a/completion/tessen.fish-completion +++ b/completion/tessen.fish-completion @@ -1,6 +1,6 @@ complete -f -c tessen complete -x -c tessen -s p -l pass -k -a "pass gopass" -d "use pass or gopass" -complete -x -c tessen -s d -l dmenu -k -a "fuzzel bemenu tofi yofi wofi rofi dmenu" -d "use either fuzzel,bemenu, tofi, yofi, wofi, rofi, or dmenu" +complete -x -c tessen -s d -l dmenu -k -a "fuzzel mew tofi yofi wofi rofi dmenu" -d "use either fuzzel,mew, tofi, yofi, wofi, rofi, or dmenu" complete -x -c tessen -s a -l action -k -a "autotype copy both" -d "either 'autotype' data, 'copy' it, or do 'both'" complete -x -c tessen -s h -l help -d "show the help menu" complete -x -c tessen -s v -l version -d "show the version" diff --git a/config b/config index 7279c24..63d79ed 100644 --- a/config +++ b/config @@ -7,7 +7,7 @@ # the default pass program to use - pass or gopass # pass_backend="pass" -# the default dmenu backend program to use - rofi, fuzzel, bemenu, rofi, or dmenu +# the default dmenu backend program to use - rofi, fuzzel, mew, rofi, or dmenu # dmenu_backend="rofi" # leave it commented if you want the default behavior - the choice to either diff --git a/man/tessen.1.scd b/man/tessen.1.scd index afc9f8a..e68fa32 100644 --- a/man/tessen.1.scd +++ b/man/tessen.1.scd @@ -25,7 +25,7 @@ The options understood by tessen are: *-d*, *--dmenu*, *--dmenu=*[dmenu backend] specify a dmenu backend - the list of recognized backends are *fuzzel*, - *tofi*, *bemenu*, *yofi*, *wofi*, *rofi*, and *dmenu* + *tofi*, *mew*, *yofi*, *wofi*, *rofi*, and *dmenu* *-a*, *--action*, *--action=*[action] specify either *autotype*, *copy*, or *both* @@ -58,7 +58,7 @@ considered case-insensitive. Note that tessen does NOT support parsing YAML files when using *gopass*(1). If a dmenu backend is not specified, tessen tries to find either one of -*fuzzel*(1), *tofi*(1), *bemenu*(1), *yofi*, *wofi*(1), *rofi*(1) or *dmenu* in +*fuzzel*(1), *tofi*(1), *mew*(1), *yofi*, *wofi*(1), *rofi*(1) or *dmenu* in the order mentioned here. If *rofi* is used, it is expected that the wayland native fork of rofi (https://github.com/lbonn/rofi) is being used. The original rofi (https://github.com/davatorium/rofi) implementation made for X.Org is NOT @@ -94,7 +94,7 @@ tessen depends on - *bash*(1) - at least one wayland native dmenu backend - *fuzzel*(1), *tofi*(1), - *bemenu*(1), *wofi*(1), *rofi*(1), *dmenu* + *mew*(1), *wofi*(1), *rofi*(1), *dmenu* - at least one pass backend - either *pass*(1) or *gopass*(1) - *wtype*(1) (if you want to autotype data) - *wl-clipboard*(1) (if you want to copy and paste data) @@ -153,7 +153,7 @@ The 'autotype' key can be changed using the 'autotype_key' variable in the If the dmenu program of your choice supports custom keybindings with exit codes greater than or equal to 10, tessen can execute custom operations on a selected -file in the first menu. At the very least, *fuzzel*(1), *bemenu*(1), and +file in the first menu. At the very least, *fuzzel*(1), *mew*(1), and *rofi*(1) support this feature. The following exit codes have been mapped to the actions mentioned besides them @@ -192,7 +192,7 @@ _$XDG_CONFIG_DIRS/tessen/config_, _/etc/xdg/tessen/config_ # SEE ALSO *tessen*(5), *pass*(1), *gopass*(1) *pass-otp*(1), *fuzzel*(1), *tofi*(1), -*bemenu*(1), *wofi*(1), *rofi*(1), *wl-clipboard*(1), *wtype*(1), +*mew*(1), *wofi*(1), *rofi*(1), *wl-clipboard*(1), *wtype*(1), *notify-send*(1) # AUTHORS diff --git a/man/tessen.5.scd b/man/tessen.5.scd index e801e77..0a881d7 100644 --- a/man/tessen.5.scd +++ b/man/tessen.5.scd @@ -40,7 +40,7 @@ The following options are understood by the configuration file for *tessen*(1): *dmenu_backend* The default dmenu backend to use - either *fuzzel*(1), *tofi*(1), - *bemenu*(1), *wofi*(1), *rofi*(1), or *dmenu* + *mew*(1), *wofi*(1), *rofi*(1), or *dmenu* *action* @@ -135,7 +135,7 @@ The following options are understood by the configuration file for *tessen*(1): # SEE ALSO *tessen*(5), *pass*(1), *gopass*(1) *pass-otp*(1), *fuzzel*(1), *tofi*(1), -*bemenu*(1), *wofi*(1), *rofi*(1), *wl-clipboard*(1), *wtype*(1), +*mew*(1), *wofi*(1), *rofi*(1), *wl-clipboard*(1), *wtype*(1), *notify-send*(1) # AUTHORS diff --git a/tessen b/tessen index f1b0c05..c8eb481 100755 --- a/tessen +++ b/tessen @@ -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 ;; -- cgit v1.2.3