Guake / guake

Drop-down terminal for GNOME
https://guake.github.io
GNU General Public License v2.0
4.41k stars 576 forks source link

Workspace-specific guake on Wayland #1690

Open 73 opened 4 years ago

73 commented 4 years ago

The feature to have a guake per workspace does currently only work on X11. If issued an entry on FeatHub.

A unified approach could be to use the Extended Window Manager Hints. There is even a Python library that implements an interface. This MWE yields the correct workspace on Wayland:

from ewmh import EWMH
ewmh = EWMH()

desktop = ewmh.getCurrentDesktop()
ewmh.display.flush()

print("desktop: ", desktop)
freimair commented 4 years ago

thanks, that is already one step forward.

do you have a suggestion on how to get notified when the workspace changes?

back then, the WnckScreen object did the trick by offering the "active-workspace-changed" signal.

self.screen = Wnck.Screen.get_default()
self.screen.connect("active-workspace-changed", self.__workspace_changed_cb)
73 commented 4 years ago

I am afraid I do not. I solved my whole I want a workspace-aware on-demand on demand terminal window with a little shell script that I run on a keyboard shortcut. For anyone interested, I posted it here.

Feel free to close this issue.