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

Notices


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:

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

Code:
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 2979 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



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

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