dict.sh
Translate with style
Demo
plain selector
default UI: recommended for CLI user
dmenu selector
suggested solution for GUI user
fzf selector
if you prefer fzf
Requirement:
- curl
- any nerdfont for display icons
- afplay/ffplay for pronouncication
Installation:
git clone --depth 1 https://github.com/klesh/dict.sh.git
cd dict.sh
sudo make install
Usage
Terminal
d hello world
fzf selector:
export D_SELECTOR='fzf --reverse --height=30%%'
d hello world
plainsel selector:
export D_SELECTOR='plainsel'
d hello world
Translate selected with dwm
make sure dmenu
and xsel
are installed and add following configuration to your dwm config.h
static const char *dictcmd[] = { "d", "$(xsel -o)", NULL };
static Key keys[] = {
....
{ MODKEY, XK_d, spawn, {.v = dictcmd} },
...