📜 ⬆️ ⬇️

in KDE 4 removed kdict

in KDE4 removed kdict, due to the inactivity of the author.
plasmoid is not quite what I would like. (and he did not earn it from me). I had to get out on their own.
I did not want to produce unnecessary entities.
so we go through the unix-way (small programs that do their work well and of course)
I was interested in the ability to quickly translate a word for this enough to highlight. and the word will be in the buffer.
and according to Meta + K, this script is called here:

#!/bin/bash
TEXT=`xclip -f -o`
kdialog --passivepopup "`dict $TEXT|head -n 50`"


simple and tasteful
xclip -f -o
throws us the contents of the clipboard on stdout
kdialog can do a lot of things
dict $ TEXT actually polls dict server
and head -n 50 limits the number of lines to 50.

')

Source: https://habr.com/ru/post/83931/


All Articles