From 2140ab51deed88e90eafebf9520fa5f9995dc7c9 Mon Sep 17 00:00:00 2001 From: twells46 <173561638+twells46@users.noreply.github.com> Date: Wed, 31 Dec 2025 13:28:05 -0600 Subject: Migrate from stow --- private_dot_local/bin/executable_save-bookmark | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 private_dot_local/bin/executable_save-bookmark (limited to 'private_dot_local/bin/executable_save-bookmark') diff --git a/private_dot_local/bin/executable_save-bookmark b/private_dot_local/bin/executable_save-bookmark new file mode 100644 index 0000000..343a002 --- /dev/null +++ b/private_dot_local/bin/executable_save-bookmark @@ -0,0 +1,15 @@ +#!/bin/sh + +bm_dir="$XDG_DATA_HOME/bookmarks" +if [ -n "$1" ]; then + bm="$1" +else + read -r bm +fi + +if grep -q "^$bm" "$bm_dir"/*; then + notify-send -t 3000 "$bm Already bookmarked" "No new bookmark was added" +else + echo "$bm" >>"$bm_dir/in_bm" + notify-send -t 3000 "$bm Bookmarked successfully" "New bookmark was added" +fi -- cgit v1.2.3