Skip to content

Fumon/rofi-spellcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

What?

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... rofithing Anything is possible!

Why?

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!

How?

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.

Dependencies

Okay but actually how do I use it?

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:

Example one-off invocation

$ rofi -show spell -modes "spell:rofi-spellcheck.sh"

Example configuration mode line

configuration {
    modes: "run,drun,spell:rofi-spellcheck.sh";
    font: "mono 12";
    ...
}

About

A spellcheck mode for rofi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages