You are not logged in.

#1 2020-11-28 10:34:15

desperado
Member
Registered: 2018-10-12
Posts: 59

Start a program's window unmapped by xorg (aka hidden)

Right now, in order to do this, I'm simply starting a  program in the shell followed by the command.

xdotool search --onlyvisible --class <process-window-name> windowunmap %@

To be specific, the program is lxqt-panel. Now, lxqt-panel doesn't go into the background after starting the shell, so I have to run the xdotool command on a different shell. Also, I have to run xdotool only after lxqt-panel has reached a certain state and not before, otherwise these is going to be no effect. So I put a one second delay after which I run xdotool.

Instead, I want to tell xorg (or the window manager, I use bspwm, lxqt-panel is the only lxqt program I use) to start the window unmapped so that the panel doesn't have to show up for a second before getting unmapped. If xorg has the capability to do this (I'm pretty sure it does, it must need the window/class name or something like that), you can do the same to any window.

I couldn't find a xorg forum on the internet (I didn't search hard enough though). Can you help me on how to do this?

Last edited by desperado (2020-11-28 12:03:51)

Offline

#2 2020-11-28 13:44:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: Start a program's window unmapped by xorg (aka hidden)

Is the window managed?
(Check "xwininfo")

If yes, your window manager might provide a rule system to handle maprequests of windows.
If not, I'd try whether lxqt-panel responds to a "--geometry" switch (and move it off desktop)

xev -root -event substruture

allows you to listen for map notifications and use the as trigger in a bash script to invoke xdotool, but that's oc. rather a kludge.

Offline

Board footer

Powered by FluxBB