Skip to content
Advertisement

How to get which window manager is active using python?

I want to check which window manager is active using python? I used subprocess.run but it’s giving me string type output like below :

JavaScript

I just want xfwm4 from name.Is there any alternative of subprocess and wmctrl for showing window manager? This is my code so far,

JavaScript

Advertisement

Answer

Using split is simplest:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement