aboutsummaryrefslogtreecommitdiff
path: root/tessen
diff options
context:
space:
mode:
authorAyush Agarwal <ayush@fastmail.in>2021-09-08 02:33:24 +0530
committerAyush Agarwal <ayush@fastmail.in>2021-09-08 02:33:24 +0530
commita4bc2cbd46920255c551f9a361513243aba3195b (patch)
treeb5c3fcf6180c157aa27a486115599fe1990d1755 /tessen
parent43c7928779853179fb5ba273684ef2bcb5c0770d (diff)
made the help menu better
Diffstat (limited to 'tessen')
-rwxr-xr-xtessen28
1 files changed, 19 insertions, 9 deletions
diff --git a/tessen b/tessen
index 9e12b11..d818f37 100755
--- a/tessen
+++ b/tessen
@@ -144,17 +144,27 @@ key_menu_autotype() {
}
print_help() {
- printf '%s\n' "tessen - select, autotype, and copy your password-store data"
- printf '%s\n' "tessen can use one of the following backends to process password-store data"
- printf '%s\n' " - bemenu (copy + autotype) - the default choice"
- printf '%s\n' " - rofi (copy + autotype) - lbonn wayland fork"
- printf '%s\n' " - fzf (copy only when run from a terminal) - limited functionality" ""
+ printf '%s\n' "tessen: copy or autotype your PASSWORD_STORE_DIR data" ""
+ printf '%s\n' "tessen can use one of the following backends"
+ printf '%s\n' " - bemenu"
+ printf '%s\n' " - rofi" ""
printf '%s\n' "usage: [-ha] [-b backend] [-s seconds]"
printf '%s\n' "Command Summary:"
- printf '%s\n' " -h show this help menu"
- printf '%s\n' " -a autotype data instead of copying"
- printf '%s\n' " -b choose either bemenu, rofi, or fzf"
- printf '%s\n' " -s number of seconds to keep copied data in clipboard"
+ printf '%s\n' " -h show this help menu"
+ printf '%s\n' " -a autotype data instead of copying"
+ printf '%s\n' " -b bemenu/rofi choose either bemenu or rofi"
+ printf '%s\n' " -s seconds number of seconds to keep copied data in clipboard" ""
+ printf '%s\n' "When using [-a], [-s seconds] will have no effect"
+ printf '%s\n' "tessen will use bemenu and will copy data by default if no options are provided" ""
+ printf '%s\n' "Examples:"
+ printf '%s\n' " autotype data in PASSWORD_STORE_DIR using bemenu"
+ printf '%s\n' ' ayushnix@laptop ~ $ tessen -a -b bemenu' ''
+ printf '%s\n' " copy data from PASSWORD_STORE_DIR using rofi to the clipboard for 30 seconds"
+ printf '%s\n' ' ayushnix@laptop ~ $ tessen -b rofi -s 30' ''
+ printf '%s\n' "If you're using the sway window manager, you can add tessen to your sway config file"
+ # shellcheck disable=SC2016
+ printf '%s\n' ' bindsym $mod+z exec tessen' ''
+ printf '%s\n' "For more details, visit https://github.com/ayushnix/tessen"
}
validate_backend() {