config.def.h | ||
config.mk | ||
dictpopup | ||
format_output.c | ||
LICENSE | ||
Makefile | ||
popup.c | ||
README.md |
suckless_dictpopup
This is a very lightweight program to show a popup with the translation of the selected text. It uses sdcv for the dictionary lookup and a slightly modified version of herbe to display the popup.
Dependencies
most of them might be already installed.
sselp , sdcv, perl
Setup
First setup sdcv according to their github page.
Then install with sudo make install
.
Uninstall with sudo make uninstall
If you would like to automatically lookup a word on every selection, then take a look at the following script: https://github.com/GenjiFujimoto/shell-scripts/blob/main/selautolookup
Usage
Call dictpopup [<WORD>]
.
If no word as an argument is supplied, the selection is used.
The popup can be dismissed by clicking on it.
The styling can be changed in config.h
and then recompile to apply.
There is also a xresources patch from herbe
that you could try to apply if you like.
popup
can also be used as a standalone program to show the contents of stdin.
TODO
-
not done yet
-
done
-
The ability to select and look up words within a popup's definition using the arrow keys.