diff options
author | Ayush Agarwal <ayush@fastmail.in> | 2021-09-21 20:20:26 +0530 |
---|---|---|
committer | Ayush Agarwal <ayush@fastmail.in> | 2021-09-21 20:20:26 +0530 |
commit | ddc200edd1a2c7494403174b0ea2b5feeecb4822 (patch) | |
tree | a071a1ee8651790dcf82be129907a6c300104dc2 /tessen | |
parent | c035849e95f48d12a828a2665c5156dd4f408496 (diff) |
add support for wofi as a backend
updated the fish completion and the README as well
Diffstat (limited to 'tessen')
-rwxr-xr-x | tessen | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -2,7 +2,7 @@ # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2021 Ayush Agarwal <ayush at fastmail dot in> # -# tessen - a data selection interface for pass using bemenu or rofi on Wayland +# tessen - a data selection interface for pass on Wayland # ------------------------------------------------------------------------------ # shell "strict" mode @@ -184,8 +184,8 @@ print_help() { printf '%s\n' " ${0##*/} -b rofi -a autotype use rofi and always autotype data" printf '%s\n' " ${0##*/} -b rofi -a copy use rofi and always copy data" printf '%s\n' " ${0##*/} -b rofi -a both use rofi and always autotype AND copy data" "" - printf '%s\n' " -b, --backend, --backend= choose 'bemenu' or 'rofi' as backend (default: bemenu)" - printf '%s\n' " -a, --action, --action= choose one of 'autotype|copy|both'" + printf '%s\n' " -b, --backend, --backend= choose 'bemenu', 'rofi', or 'wofi' as backend (default: bemenu)" + printf '%s\n' " -a, --action, --action= choose 'autotype', 'copy', or 'both'" printf '%s\n' " -h, --help print this help menu" printf '%s\n' " -v, --version print the version of ${0##*/}" "" printf '%s\n' "For more details, visit https://github.com/ayushnix/tessen" @@ -201,8 +201,11 @@ validate_backend() { elif [[ "$BACKEND" == "rofi" ]]; then readonly BACKEND="rofi" readonly BACKEND_OPTS="-dmenu" + elif [[ "$BACKEND" == "wofi" ]]; then + readonly BACKEND="wofi" + readonly BACKEND_OPTS="-d" else - printf '%s\n' "Please specify a backend: bemenu|rofi" >&2 + printf '%s\n' "Please specify a backend: bemenu|rofi|wofi" >&2 exit 1 fi } @@ -249,7 +252,7 @@ main() { case "$_opt" in -b | --backend) [[ "$#" -lt 2 ]] && { - printf '%s\n' "Please specify a backend: bemenu|rofi" >&2 + printf '%s\n' "Please specify a backend: bemenu|rofi|wofi" >&2 exit 1 } BACKEND="${2-}" |