dicx

command module
v0.0.0-...-a2bdf85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

README ΒΆ

dicx - Word Meaning and Pronunciation Tool πŸ“šπŸ”‰

dicx is a simple tool that provides the meaning of any selected word and pronounces the word if possible.

Working πŸ› οΈ

It utilizes the xclip tool to retrieve the selected word from the active window and fetches the meaning using the free dictionary API (dictionaryapi.dev). Finally, it presents the output using the notify-send program to send notifications.

Requirements πŸ› οΈπŸ“‹

The following tools are necessary for the program to work properly:

  • libnotify
  • xclip
  • go compiler

Installation πŸš€

NOTE: Install at your own RISK!!

Before building from source, make sure you meet all the requirements.

  1. Build the source using go build dicx.go or use go install github.com/vikySeeker/dicx@latest.
  2. Move the executable dicx to your desired path for global access.
  3. Create a shortcut in your system binding the command dicx with the shortcut, and you are good to go!

Alternatively, you can select any word in the window and run the program directly.

Usage πŸš€

This program can output results in three modes:

  1. Terminal Mode: Simply outputs to the terminal.
  2. Notification Mode: When the program is invoked via a keyboard shortcut, it uses this mode.
  3. Hybrid Mode: Combining both modes. Use the -n flag to force the program to send output in both ways, but only in terminal mode.

Torubleshooting

If the go install spits an error stating that alsa.pc path is missing or anything regarding alsa, try isntalling libasound2-dev library and try again.

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL