dotfiles

regexghost dotfiles and scripts
git clone https://git.regexghost.com/dotfiles.git
Log | Files | Refs | README

commit c96a75b379c44caf375309c33290a65c04aba39a
parent 0bbb18682cde9d477425e1fcd7eeb65b727fe40c
Author: regexghost <dev@regexghost.com>
Date:   Fri, 28 Aug 2026 00:35:38 +0100

check if bookmark is a url before opening in bookmarks.sh

Diffstat:
Mwm-scripts/bookmarks.sh | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/wm-scripts/bookmarks.sh b/wm-scripts/bookmarks.sh @@ -13,5 +13,9 @@ if [ $status -eq 0 ]; then echo -n "$real_bookmark" | xclip -selection clipboard # Shift+Return - open in browser elif [ $status -eq 10 ]; then - $BROWSER "$real_bookmark" & + if echo "$real_bookmark" | grep -q "^https*://"; then + $BROWSER "$real_bookmark" & + else + notify-send "Not a URL" + fi fi