Hiding and showing QStarDict window with D-Bus

From QStarDict wiki
Jump to: navigation, search

You can show and hide QStarDict window using keyboard shortcuts.



You must have QStarDict compiled with D-Bus support and installed qdbus program.

Shell script

Create script "~/.qstardict-show-hide.sh" with following text:

qdbus org.qstardict.dbus /qstardict org.freedesktop.DBus.Properties.Set \
org.qstardict.dbus mainWindowVisible \
$(( ! $(qdbus org.qstardict.dbus /qstardict org.freedesktop.DBus.Properties.Get \
org.qstardict.dbus mainWindowVisible)))

Shortcut configuration

Configure your window manager for executing this script after pressing selected shortcut.

See also

D-Bus interface

Personal tools