It's a small rofi script which provides spell checking. If you accept one of the options presented, it will copy the word to your clipboard.
With the exhilarating power of spellcheck... Anything is possible!
Because I'm Canadian and never sure what flavour/flavor of spelling rules applies, and bad enough at spelling that I'm paranoid whenever I want to type a word with an -ance or an -ence in it.
This script is very useful if you, like me, are sick of using google for spellchecking just because it's the fastest thing available.
I had this idea years ago, but the opportunity cost was always higher than writing this. That was until I switched to using the Kagi search engine which, at time of writing (Christmas Day 2022), doesn't do a great job of indicating when it's corrected your spelling making it unsuitable for the task (and I'm just lazy enough that opening up a non-default search engine is enough to push this project over the annoyance threshold)
The future is now!
It uses the spell checking front end enchant-2
internally. If there's some interest, I may make it fall back gracefully to aspell or anything else that supports the ancient ispell interactive format.
It also uses wl-clipboard
or xclip
for copying to the clipboard.
enchant
wl-clipboard
orxclip
rofi
- For now you'll need a wayland compatible fork of rofi. I use
rofi-lbonn-wayland-git
on arch.
- For now you'll need a wayland compatible fork of rofi. I use
Download the rofi-spellcheck.sh
file. Give it execution permissions and put it somewhere on your PATH so that rofi can find it when starting.
Then add it to your rofi configuration as a script mode, or bind it to a hotkey as a one-off invocation:
$ rofi -show spell -modes "spell:rofi-spellcheck.sh"
configuration {
modes: "run,drun,spell:rofi-spellcheck.sh";
font: "mono 12";
...
}