diff options
author | Ayush Agarwal <ayush@fastmail.in> | 2022-02-16 23:46:27 +0530 |
---|---|---|
committer | Ayush Agarwal <ayush@fastmail.in> | 2022-02-16 23:46:27 +0530 |
commit | 4d3a3e6b61f68cdd273ca94556cfa3b32b31827f (patch) | |
tree | edb56755f7d8156d043468e1f960fa102ebaed61 | |
parent | 429712a05c0d1dcbb24b6a791bba9d66cbac9742 (diff) |
refactor: clear the clipboard when necessary
clearing the clipboard isn't needed when in autotype only mode
-rwxr-xr-x | tessen | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -610,8 +610,11 @@ validate_action() { } _clear() { - wl-copy --clear - unset -v tsn_passfile tsn_username tsn_password tsn_passdata chosen_key + if [[ "$tsn_action" =~ ^(copy|both|default)$ ]]; then + wl-copy --clear + fi + unset -v tsn_passfile tsn_passdata tsn_username tsn_password tsn_url + unset -v tsn_autotype chosen_key } _die() { |