lots of stuff

This commit is contained in:
2025-04-21 19:44:26 -07:00
parent 4d44700fb8
commit 857cb3060a
13 changed files with 105 additions and 246 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/sh
clipboard_text=$(wl-paste -p)
clipboard_text=$(wl-paste)
bookmarks_file="$HOME/.local/share/bookmarks/bookmarks"
if [ ! -f "$bookmarks_file" ]; then
@@ -12,9 +12,6 @@ fi
# Trim leading/trailing whitespace
clipboard_text=$(echo "$clipboard_text" | xargs)
# Strip https:// or http://
clipboard_text=$(echo "$clipboard_text" | sed 's#^https\?://##')
# Remove trailing slashes
clipboard_text=$(echo "$clipboard_text" | sed 's#/$##')