aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyush Agarwal <ayush@fastmail.in>2021-09-20 04:03:18 +0530
committerAyush Agarwal <ayush@fastmail.in>2021-09-20 04:03:18 +0530
commit89e0637e06b32e831b1bd21649ef1ff7e9376660 (patch)
treec1dc7fa964cc16756af91e99b9cd6a4df8c8c644
parent44659ea57b5af13bf2b634efb2006600499b5da2 (diff)
don't panic if libnotify isn't installed
-rwxr-xr-xtessen6
1 files changed, 3 insertions, 3 deletions
diff --git a/tessen b/tessen
index a63e17d..e6855c6 100755
--- a/tessen
+++ b/tessen
@@ -158,17 +158,17 @@ auto_type() {
wld_copy() {
if [[ "${1-}" == "username" ]]; then
printf '%s' "$USERNAME" | wl-copy
- notify-send -t $((CLIP_TIME * 1000)) "Copied username to clipboard. Will clear in $CLIP_TIME seconds."
+ notify-send -t $((CLIP_TIME * 1000)) "Copied username to clipboard. Will clear in $CLIP_TIME seconds." || true
shift
clean
elif [[ "${1-}" == "password" ]]; then
printf '%s' "$PASSWORD" | wl-copy
- notify-send -t $((CLIP_TIME * 1000)) "Copied password to clipboard. Will clear in $CLIP_TIME seconds."
+ notify-send -t $((CLIP_TIME * 1000)) "Copied password to clipboard. Will clear in $CLIP_TIME seconds." || true
shift
clean
elif [[ -n "${PASSDATA_ARR[${1-}]}" ]]; then
printf '%s' "${PASSDATA_ARR[${1-}]}" | wl-copy
- notify-send -t $((CLIP_TIME * 1000)) "Copied ${1-} to clipboard. Will clear in $CLIP_TIME seconds."
+ notify-send -t $((CLIP_TIME * 1000)) "Copied ${1-} to clipboard. Will clear in $CLIP_TIME seconds." || true
shift
clean
else