Help answer threads with 0 replies.
Go Back > Blogs > linux-related notes
User Name


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

Dealing with gxmessage windows on wmctrl

Posted 01-12-2020 at 05:25 PM by the dsc

If you ever see yourself wanting to manipulate gxmessage dialogs/windows with wmctrl for some reason, you may notice the name of the window set by gxmessage itself is kind of ignored, depending on the parameters you'd use on wmctrl. It will instead still behave as if the window title was "Gxmessage," or yet "gxmessage.Gxmessage," depending on wmctrl parameters. Which is troublesome if you have more than one.

I thought it would be needed to grep the title from a "wmctrl -l" listing and then strip out what's not the window ID, but there's at least one simple solution:

wmctrl -F -a "CaSe-SeNsitivE custom gxmessage title" -b add,skip_taskbar
But the title apparently CANNOT be given as a variable, such as:

gxmtitle="CaSe-SeNsitivE custom gxmessage title"

wmctrl -F -a "$gxmtitle" -b add,skip_taskbar
For whatever reason, it won't work that way. Maybe without the quotes? I don't know.
Posted in Uncategorized
Views 13621 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 10:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration