From ddc200edd1a2c7494403174b0ea2b5feeecb4822 Mon Sep 17 00:00:00 2001 From: Ayush Agarwal Date: Tue, 21 Sep 2021 20:20:26 +0530 Subject: add support for wofi as a backend updated the fish completion and the README as well --- tessen | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'tessen') diff --git a/tessen b/tessen index a90a273..286fa56 100755 --- a/tessen +++ b/tessen @@ -2,7 +2,7 @@ # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2021 Ayush Agarwal # -# 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-}" -- cgit v1.2.3