Hide/Unmap windows in X11.
- Hides any newly spawned window with the given property.
- Can also hide previously spawned windows.
- Automatically unhides/maps them on exit.
Assuming proper golang setup, simply clone this repo, change directory to repo's directory and run the following command:
$ go install
$ sphidewin --help
sphidewin [options] WM_CLASS
where [options] are:
-h Show help message
-help
Show help message
-p Unmap previously spawned windows
Running the above command
$ sphidewin chromium
And opening chromium
shows the following output:
$ sphidewin chromium
2023/01/29 22:48:59 [chromium Chromium] 48234498 unmapped
And the chromium window is never shown.
Press Ctrl-C
to unhide the chromium window.
$ sphidewin chromium
2023/01/29 22:48:59 [chromium Chromium] 48234498 unmapped
^C2023/01/29 22:55:19 Mapped 48234498
GPLv3. See COPYING.