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"
]
]
In the current update, the libreoffice package doesn't have any binary for libreoffice writer, calc, impress, draw, etc. So it's better to open all of the document using the 'libreoffice' binary as it can work in the old version of libreoffice as well as the new one.
I found a much better way of doing this, without a potentially too short sleep. This script waits for an input to be added, and then waits for a usb device to be bound. The remaps script can be run as soon as the USB device is bound. These changes should improve the reliability of the script and maybe even decrease latency.