Skip to content

Instantly share code, notes, and snippets.

@zerosign
Forked from rbreaves/WaylandUbuntu19.10-AppTitle
Last active July 11, 2021 15:31
Show Gist options
  • Save zerosign/b06bdf8af29ac0b27261877b481a061e to your computer and use it in GitHub Desktop.
Save zerosign/b06bdf8af29ac0b27261877b481a061e to your computer and use it in GitHub Desktop.
Grab wmclass name or Window Name/Title under Wayland with Gnome 3.x
gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell -m org.gnome.Shell.Eval "global.get_window_actors().filter(a=>a.meta_window.has_focus()===true)[0]?.get_meta_window()?.get_wm_class()"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment