···4545# want to use it
4646# if this key is set, xdg-open will not be used even if it's installed
4747# web_browser=""
4848+4949+# whether to send notifications about copied data via notify-send
5050+# notify="true"
+5
man/tessen.5.scd
···127127 The default web browser that should be used for opening URLs. If this is
128128 specified, *xdg-open*(1) will not be used even if it's installed.
129129130130+ *notify*
131131+132132+ Whether to send notifications about copied data via *notify-send*(1).
133133+ Either *true* or *false* (default is *true*).
134134+130135# SEE ALSO
131136132137*tessen*(5), *pass*(1), *gopass*(1) *pass-otp*(1), *fuzzel*(1), *tofi*(1),
+5-2
tessen
···1414declare _PASS_BACKEND _DMENU_BACKEND _TSN_ACTION _TSN_CONFIG
1515declare -a _DMENU_BACKEND_OPTS _TMP_TOFI_OPTS _TMP_ROFI_OPTS _TMP_WOFI_OPTS
1616declare -a _TMP_FUZZEL_OPTS _TMP_YOFI_OPTS
1717-declare _TSN_USERKEY _TSN_URLKEY _TSN_AUTOKEY _TSN_WEB_BROWSER _TSN_OTP
1717+declare _TSN_USERKEY _TSN_URLKEY _TSN_AUTOKEY _TSN_WEB_BROWSER _TSN_OTP _TSN_NOTIFY
1818declare -i _TSN_DELAY
1919# show both actions, 'autotype' and 'copy', to choose from by default
2020_TSN_ACTION="default"
···2323_TSN_URLKEY="url"
2424_TSN_AUTOKEY="autotype"
2525_TSN_DELAY=100
2626+_TSN_NOTIFY=true
2627if [[ -f "${XDG_CONFIG_HOME:-$HOME/.config}"/tessen/config ]]; then
2728 _TSN_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}"/tessen/config
2829elif [[ -f "${XDG_CONFIG_DIRS:-/etc/xdg}"/tessen/config ]]; then
···408409 # feature
409410 # https://github.com/bugaevc/wl-clipboard/issues/107
410411 printf "%s" "$1" | wl-copy
411411- if is_installed notify-send; then
412412+ if [[ $_TSN_NOTIFY == true ]] && is_installed notify-send; then
412413 notify-send -t $((tsn_cliptime * 1000)) \
413414 "data has been copied and will be cleared from the clipboard after $tsn_cliptime seconds"
414415 fi
···673674 _TSN_DELAY="$val"
674675 elif [[ $key == "web_browser" ]] && is_installed "$val"; then
675676 _TSN_WEB_BROWSER="$val"
677677+ elif [[ $key == "notify" ]]; then
678678+ _TSN_NOTIFY="$val"
676679 fi
677680 done
678681 fi