a very lightweight popup dictionary written in C
Go to file
2023-06-02 16:37:28 -04: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
daemon-popup Update daemon-popup 2023-06-02 16:37:28 -04:00
dictpopup typo 2023-05-30 17:01:20 -04:00
format_output.c Improve formatting 2023-05-28 21:04:04 +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 Update popup.c 2023-06-02 11:16:48 -04:00
README.md Update README.md 2023-06-02 11:47:44 -04:00

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.

image

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

  • Completed
  • Work in Progress

  • Switch between words in a given sentence by using the arrow keys or any user-defined key; Sudachi can be used to accomplish that.