Age | Commit message (Collapse) | Author |
|
|
|
This allowed to make the code much simpler and avoid repititive
validation checks.
Using fzf as a backend is broken because I've been unable to figure out
how to make fzf work if we do `$TERMINAL -e tessen -b fzf`.
|
|
|
|
|
|
|
|
Yeah, don't litter your script with code not inside functions. The help
menu was also moved near the end of the script because it isn't part of
the script's core logic functions which are meant to be at the top.
|
|
The copy and autotype functions were renamed to make better sense and
adapated to work with the `clean` and `die` functions. This will make
these functions work well with an EXIT trap.
|
|
The `clean` function will copy password store data for a specific amount
of time and then clear it. The `die` function is meant to clear the
clipboard and other sensitive data immediately.
|
|
|
|
There's no need to have the getopts loop outside the main function. The
main function can be called as `main "$@"` to accept positional
parameters as input which then goes on to `getopts` which, by default,
uses `"$@"` unless a positional parameters is explicitly given.
|
|
|
|
I'm using `wtype` instead of `ydotool` simply because the former doesn't
need root access while the latter does. However, `wtype` doesn't seem to
be able to autotype correctly in a few cases in Firefox. In Chromium,
autotyping seems to be broken with `wtype`.
I don't think one should rely on autotyping. Although it is extremely
convenient, it is error prone, even in X11 when using xdotool. One of
the reasons is because some web pages don't follow the typical username
and password prompt and have a link between the two which basically
breaks autotyping.
|
|
Although bemenu and rofi work fine, fzf doesn't if tessen isn't invoked
from a terminal. I'm not sure why but using `exec $TERMINAL -e tessen -b
fzf` inside a sway config file won't work as expected.
|
|
|
|
For now, the script isn't ready for wide usage. I still need to add code
for autotyping and for all the backend choices.
|
|
|