commit 851c90e6885e54d29bd748341f031bf893f83e46 parent caacf0e6accf756c174bff678bf688492dccdf51 Author: Anton Konyahin <me@konyahin.xyz> Date: Thu, 7 Mar 2024 23:00:41 +0300 move notes location to .profile and add notification Diffstat:
M | stnote | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/stnote b/stnote @@ -2,6 +2,8 @@ set -eu +. ~/.profile + export STTEMP_ASK=$( cat <<'EOF' ask () { @@ -19,4 +21,5 @@ export URL=$(xclip -o -selection primary) xdotool key --clearmodifiers "Escape" FILE_NAME=$(date '+%Y-%m-%d-%H%M%S') -sttemp webnote >> "/home/anton/public_gopher/web/$FILE_NAME.md" +sttemp webnote >> "${NOTES_QUEUE}/$FILE_NAME.md" +notify-send -t 1500 "Saved to $FILE_NAME.md"