This script allows us to bookmark websites as names instead of URLs.
It is useful with the other script: "bookmarksearch" that helps us use search engines on dmenu or directly open the site if the url doesn't include "search" word in it.
In this case the first entry would give us a second dmenu prompt to enter e keyword and the second entry will be opened directly when chosen:
[
"searxng",
"https://www.paulgo.io/search?q="
],
[
"cooking",
"https://based.cooking"
]
The script take the formatting and duplicate urls into account. You don't need to worry about it.
**Detailed Explanation:**
- We use a text file to store the URLs in: "~/.local/share/urlquery"
- The script uses the command "jq" to see a JSON data with specific information. We can use it to get the complete URL address or the name of the website.
- "grep" checks if the selected entry starts with "http". If it does, the script adds that URL with specific formatting inside the urlquery file after asking what should the URL be named.
- "jq" command again, considers the format of the file and adds a comma at the end followed by a new urlquery name and the address inside brackets and quotes in order to keep formatting correct.
- notify-send informs us about the output: If the URL is already on the list, or the selected entry is not an URL or when it is added successfully.
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.
* Fix mouse issue in firefox, add avif icon and add DK & SE to dopplar
* Update sb-doppler
* Scandinavian countries listed
---------
Co-authored-by: Victor Risgaard <victor@risgaard.xyz>
* Don't stop mounter script on ls error
If no decrypted LUKS drives are found, the script errors with `ls: cannot access '/dev/disk/by-id/dm-uuid-CRYPT-LUKS2-*': No such file or directory` and stops, this makes sure the error doesn't stop the script.
* True was on wrong line
* Programs that show ~/ or / instead of the actual working directory are now ignored by the script (except for zsh & lf where its correct). This will fix bugs where sd opens your home folder instead of the current working directory.
* This also removes the need for manually excluding all programs that don't show the correct cwd.
* git (and its sub-processes) will show the root of a repository instead of the actual cwd, so they're ignored too.