Hiding and showing QStarDict window with DBus

Alexander Rodin edited this page Nov 29, 2018 · 1 revision

You can show and hide QStarDict window using keyboard shortcuts.

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.

See also

DBus interface

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.