a very lightweight popup dictionary written in C
Go to file
Genji Fujimoto 24569319f9
Merge pull request #1 from GenjiFujimoto/stdin
Switch to reading from stdin and add html support
2023-05-28 11:27:26 +00:00
config.def.h Improve html dictionaries 2023-05-28 13:15:50 +02:00
config.mk Update Makefile 2023-05-10 19:47:42 +02:00
dictpopup Improve html dictionaries 2023-05-28 13:15:50 +02:00
format_output.c Improve html dictionaries 2023-05-28 13:15:50 +02:00
LICENSE initial commit 2023-05-09 12:42:03 +02:00
Makefile Improve html dictionaries 2023-05-28 13:15:50 +02:00
popup.c Improve html dictionaries 2023-05-28 13:15:50 +02:00
README.md Update README.md 2023-05-28 11:21:34 +00:00

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.

image

screenshot-2023-05-28-08-34-19

Dependencies

sselp (can be replaced with xclip -o), sdcv.
Optional: lynx (for html support)

Setup

First setup sdcv according to their github page. Then install with sudo make install.
Uninstall with sudo make uninstall

Usage

Call dictpopup [html] [<WORD>].
If no word as an argument is supplied, the selection is used.
If the string html is supplied as the first argument, then html support will be enabled.
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.