Goldendict Ng on Wayland

The shortcut Ctrl+C+C is used to look up the selected word in Goldendict and Goldendict-NG. However, this shortcut does not work properly on Wayland, because Wayland does not support the underlying function it relies on, as explained in the official documentation.

Fortunately, there is a simple workaround that is even more convenient than the original method: use wl-paste together with global shortcuts provided by desktop environments (such as KDE, GNOME, etc.).

Create a new shortcut in the system settings and set the shortcut to run the following command:

Show/Hide the code
1
bash -c 'goldendict "$(wl-paste -n -p)"'
使用 Hugo 构建
主题 StackJimmy 设计