Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-11-20 23:54:08

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

detect when xfce4-terminal window is open

i have a script that launches multiple instances of xfce4-terminal.  after each one, it then needs to change to a different workspace number and launch another xfce4-terminal.  without waiting, all would open their windows in a latter namespace, perhaps the very last.  to avoid this i run sleep for a time that it seems it takes for xfce4-terminal to open the window.  but sometimes, for an unknown reason, it takes even longer to open.  i have extended this sleep time twice.  but it also sleeps when the window opens fast and that seriously slows the script.

i'm looking for a way to detect when the window is actually open so the script can then switch to the next workspace.  any ideas?

edit:

while doing some searching, a deep reference suggested that even the shell session the terminal starts could get to running that shell's profile or "rc" script before the terminal window appears.  i do want to know how to detect when the window is there.

i want to change workspace once the window is there (if i change workspace sooner the window can appear in the wrong place.  a way to force a window into a workspace that is not the current workspace would be helpful but i have seen no way to do that.

Last edited by Skaperen (2022-11-22 20:16:31)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 510.84 KiB (Peak: 528.88 KiB) ]