Last active
May 7, 2022 23:40
-
-
Save valechelaru/a7d685d82309138789699f4e9ca798fd to your computer and use it in GitHub Desktop.
Small script that searches for highlighted text using the gnome-dictionary.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Put highlighted text into the clipboard buffer | |
| xclip -out -selection primary | |
| # Start the gnome-dictionary and search for the clipboard buffer | |
| gnome-dictionary --look-up="$(xclip -o selection clipboard)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment