From 759e0c0677c55e99361538054ed87bf7060c654f Mon Sep 17 00:00:00 2001 From: subh Date: Sun, 29 Mar 2026 08:07:44 +0530 Subject: added a bookmark manager for browsers and added uptime to the qs bar --- scripts/bookmark.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/bookmark.sh (limited to 'scripts') diff --git a/scripts/bookmark.sh b/scripts/bookmark.sh new file mode 100755 index 0000000..a41eb8e --- /dev/null +++ b/scripts/bookmark.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +bookmark=$(wl-paste -p) +filename="$HOME/.local/share/larbs/bookmarks" + + +if [[ "$bookmark" =~ ^https?:// ]]; then + if grep -q "^$bookmark$" "$filename"; then + notify-send "Bookmark Status" "Already Bookmarked" + else + notify-send "Bookmark Status" "Bookmark Added" + echo "$bookmark" >> "$filename" + fi +else + exit 1 +fi -- cgit v1.2.3