forked from Guake/guake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
to call dbus message directly Signed-off-by: Gaetan Semet <[email protected]>
- Loading branch information
Showing
6 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
def toggle_guake_by_dbus(): | ||
import dbus | ||
|
||
try: | ||
bus = dbus.SessionBus() | ||
remote_object = bus.get_object('org.guake3.RemoteControl', '/org/guake3/RemoteControl') | ||
print("Sending 'toggle' message to Guake3") | ||
remote_object.show_hide() | ||
except dbus.DBusException: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fixes: | ||
- | | ||
Wayland is a bit more well supported. The X11 backend is now used by default for | ||
GDK and it seems to make the shortcut works under most situation. | ||
A more cleaner solution would be to develop a GAction | ||
(`vote for this feature here <https://feathub.com/Guake/guake/+29>`_]) | ||
- | | ||
A new command has been added: ``guake-toggle``, should be faster than | ||
``guake -t``. You can use it when you register the global shortcut manually | ||
(X11 or Wayland). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ flake8 | |
mock>=2.0.0 | ||
pep8 | ||
pipenv-to-requirements | ||
pyflakes | ||
pyflakes<2.0.0 | ||
pylint | ||
pytest | ||
pytest-mock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters