2023-05-09 10:51:38 +00:00
# dictpopup
2023-05-09 10:42:03 +00:00
2023-05-09 10:51:38 +00:00
It's a very lightweight program to show a popup with the translation of the selected text. It uses [sdcv ](https://github.com/Dushistov/sdcv ) for the dictionary lookup and a slightly modified version of [herbe ](https://github.com/dudik/herbe ) to display the popup.
2023-05-09 10:42:03 +00:00
2023-05-09 10:54:46 +00:00
![image ](https://github.com/GenjiFujimoto/dictpopup/assets/50422430/c4a3663b-fd91-4a66-95ad-f1528071c932 )
2023-05-09 10:51:38 +00:00
## Dependencies
xclip, sdcv
2023-05-09 10:42:03 +00:00
2023-05-09 10:51:38 +00:00
## Setup
Compile with `make` and place `dictpopup` as well as `popup` in your PATH.
2023-05-09 10:42:03 +00:00
## Usage
2023-05-09 10:57:06 +00:00
call `dictpopup` to translate and display the popup of the selected text. The
popup can be dismissed by clicking on it.\
You can also use `popup` like `popup "Hello"` for other things if you want.\
The styling can be changed in `config.h` , but it has the be recompiled then.
There is also a xresources patch from [herbe ](https://github.com/dudik/herbe )
that you could try to apply.