It is decided when the workspaces button (which divides the screen into 4 equal parts) is clicked in my system (linux), some part of the ui needs to hide and the other maximized.
I want to know how to get the event of the workspaces button.
When the button is clicked again and a desktop is chosen, the modification is reversed, the menu should again appear in the ui.

any has any idea?