Find the name of the window manager X

How can I find the name of the starting window manager X from the program?

If I started another window manager when it is already running, an error occurs, so there should be a way to detect the first for another window manager.

How it works?

+3
source share
3 answers

In the EWMH spec, a compatible window manager will set the _NET_SUPPORTING_WM_CHECKwindow identifier for the property in the root window.

_NET_SUPPORTING_WM_CHECK , , ICCCM2. , , , ICCCM2, . , , ICCCM2.0, .

( , , ) _NET_WM_NAME, .

+8

wmctrl XWWH, EWMH/NetWM, :

$ wmctrl -m
Name: Compiz
...

, ( 2012):

  • blackbox >= 0.70
  • IceWM
  • kwin ( WM KDE)
  • metacity ( WM GNOME)
  • openbox >= 3 ( WM Lubuntu)
  • -
  • fvwm >= 2.5
  • pekwm
  • >= 0.16.6
  • xfce >= 4
  • fluxbox >= 0.9.6
  • >= 0.91
  • Compiz
  • wmfs
+3

"", , , 100% , . "xlsatoms" "xprop" ( ), ( ) .

+1

Source: https://habr.com/ru/post/1706567/


All Articles