Emre AKYÜZ 9021792c2f
Script for Using Bookmarks (Separate URL and Name + Search with Keywords)
This script allows us to open a bookmarked URL on the browser, only showing the name of the website, stripping the URL from the dmenu list.
- If the URL has the word "search" in it, then the script will offer for a second dmenu for you to enter a keyword to search.
      - "searxng" entry, will offer for a second input after being chosen. Then you can enter a keyword to search from that website. It can be any website with search function. So look at your bookmarks --> choose "searxng" entry --> Write a keyword and enter --> Search for that keyword on searxng.
- Otherwise it will open the website directly --> "cooking" entry can open "https://based.cooking" for example.
- We rely on the JSON data formatting to separate URLS from the names we put on websites. So we need to program "jq".

Summary: It first selects a website using dmenu, then checks if "search" is present in the URLQUERY such as "https://paulgo.io/search?q=". If "search" is present, it asks for keywords before opening the URL. If not, it directly opens the URL without asking for keywords.

Execution Time: Instant
Required Programs: jq | echo | grep | dunst | browser
Required File: A bookmark file named ~/.local/share/larbs/urlquery formatted in JSON data format like this:
Goes well with: The other script: bookmarkthis
[  
 [
   "searxng",
   "https://www.paulgo.io/search?q="
 ],
 [
   "cooking",
   "https://based.cooking"
 ]
]
2023-04-23 02:02:35 +03:00
..
2023-04-20 08:48:34 -04:00
2023-02-02 14:15:32 -05:00
2022-07-21 14:33:35 -04:00
2023-01-15 05:27:46 +00:00
2023-04-12 12:11:29 +00:00
2023-01-15 08:30:21 -05:00
2022-10-26 16:28:38 -04:00
2020-06-01 15:29:57 -04:00
2021-10-23 10:27:45 -04:00
2022-03-11 18:32:19 -05:00
2023-02-21 10:27:08 -05:00
2022-08-25 13:41:28 +00:00
2020-06-01 15:29:57 -04:00
2020-06-01 15:29:57 -04:00
2022-04-10 12:39:05 +00:00
2023-02-09 11:52:47 -05:00
2023-02-09 11:52:47 -05:00
2020-08-27 15:55:17 -04:00
2021-04-07 11:46:50 -04:00
2022-07-08 14:25:42 -04:00
2022-09-30 14:22:33 +00:00
2022-05-21 14:40:59 -04:00
tag
2022-09-23 14:55:42 +00:00
2023-03-01 13:38:22 -05:00
2020-05-13 11:47:29 -04:00
2023-02-20 12:01:52 +00:00
2023-01-27 17:32:33 -05:00