Hiding and showing QStarDict window with D-Bus
From QStarDict wiki
You can show and hide QStarDict window using keyboard shortcuts.
Contents |
Requirements
You must have QStarDict compiled with D-Bus support and installed qdbus program.
Shell script
Create script "~/.qstardict-show-hide.sh" with following text:
#!/bin/sh 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.