diff --git a/README.md b/README.md index 67e0a37..0a84511 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Primarily for use in status bars as indicator that windows may be hidden behind another when in floating or monocle mode. - `clean_files.sh`: script that loops through each file in a directory, opens each file with the `mimeopen` utility, and prompts the user to decide whether or not to delete the image. + - `defn`: shell script to look up word in dictionary file in the format: `word:\tdefinition\n`. - `ensure_connected.sh`: script to remedy my broken WiFi, which has an issue of disconnecting unpredictably and then requiring several attempts to reconnect as if the password supplied were incorrect despite it not being changed since the inital connection. This script checks if the WiFi is connected at regular intervals, and if not will keep trying to reconnect until successful. diff --git a/defn b/defn new file mode 100755 index 0000000..b71cd47 --- /dev/null +++ b/defn @@ -0,0 +1,4 @@ +#!/bin/sh +# Script to look up word in dictionary file in the format: "word:\tdefinition\n" + +rg --no-line-number "^$1:" ~/.local/share/dictionary.txt