https://github.com/github-young/clipdict
A command line dictionary reading from clipboard. (A simple wrapper of dictd.)
https://github.com/github-young/clipdict
Last synced: 5 months ago
JSON representation
A command line dictionary reading from clipboard. (A simple wrapper of dictd.)
- Host: GitHub
- URL: https://github.com/github-young/clipdict
- Owner: github-young
- License: mit
- Created: 2020-01-08T11:52:30.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-16T08:43:43.000Z (almost 6 years ago)
- Last Synced: 2025-01-16T00:54:07.292Z (11 months ago)
- Language: Shell
- Homepage:
- Size: 285 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ClipDict
A command line dictionary -- reading from clipboard. (A simple wrapper of dictd.)
> Why do we need this since Goldendict works pretty well?
~~Because CLI is cool, cooler, coolest!~~
## Demo

## Pre-requisites
- dictd
- xclip
Tested on Manjaro Linux 18.1.5 (DDE)
## Usage
### Synopsis
ClipDict.sh [OPTION] [value]
### Options
-h show this help text
-m set the working MODE:
copy translate a word when copied (default)
select translate a word upon selected
-n display the output in system notifications or terminal
false in terminal (default)
true in system notifications
-v show the version
### Example
```shell
./ClipDict.sh
./ClipDict.sh -m select -n true
./ClipDict.sh -h
```
## References
- Inspired by [CBDict](https://github.com/olixu/CBDict)
- [dictd](https://wiki.archlinux.org/index.php/Dictd):
- [Install dictd](https://linux.cn/article-2953-1.html) and
- [local chinese dictionaries](https://www.jianshu.com/p/661c8e5bed86)