[DWM] How to get window titles (w/xprop?)

I'm trying to expand my "switch-to-tag"-script to include window titles, but have stumbled upon something I can't understand:
If I issue "xprop" (with no arguments), and click on my firefox-window, I get the following output:
user@host $ xprop (click on firefox window)
_NET_WM_USER_TIME(CARDINAL) = 6193278
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x14000aa
bitmap id # of mask for icon: 0x14000ab
window id # of group leader: 0x1400001
WM_WINDOW_ROLE(STRING) = "browser"
XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
[[ !! HUGE ASCII ICON WAS DELETED TO SAVE SPACE HERE !! ]]
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 20971689
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x14000a8
WM_CLIENT_LEADER(WINDOW): window id # 0x1400001
_NET_WM_PID(CARDINAL) = 873
WM_LOCALE_NAME(STRING) = "C"
WM_CLIENT_MACHINE(STRING) = "allotria"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 1 by 63
program specified maximum size: 32767 by 32767
window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "Navigator", "Firefox"
WM_ICON_NAME(STRING) = "How do I get the active window title into a script? (Page 1) / Applications & Desktop Environments / Arch Linux Forums - Mozilla Firefox (Private Browsing)"
_NET_WM_ICON_NAME(UTF8_STRING) = "How do I get the active window title into a script? (Page 1) / Applications & Desktop Environments / Arch Linux Forums - Mozilla Firefox (Private Browsing)"
WM_NAME(STRING) = "How do I get the active window title into a script? (Page 1) / Applications & Desktop Environments / Arch Linux Forums - Mozilla Firefox (Private Browsing)"
_NET_WM_NAME(UTF8_STRING) = "How do I get the active window title into a script? (Page 1) / Applications & Desktop Environments / Arch Linux Forums - Mozilla Firefox (Private Browsing)"
So that worked alright. However, if I feed the ID of the window (0x1400001) to xprop, I get the following:
user@host $ xprop -id 0x1400001
WM_CLASS(STRING) = "firefox", "Firefox"
WM_COMMAND(STRING) = { "firefox" }
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x1400002
WM_CLIENT_LEADER(WINDOW): window id # 0x1400001
_NET_WM_PID(CARDINAL) = 873
WM_LOCALE_NAME(STRING) = "C"
WM_CLIENT_MACHINE(STRING) = "allotria"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified size: 10 by 10
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING
WM_ICON_NAME(STRING) = "firefox"
_NET_WM_ICON_NAME(UTF8_STRING) = "firefox"
WM_NAME(STRING) = "Firefox"
_NET_WM_NAME(UTF8_STRING) = "Firefox"
There's no title in that output, even though I saw it by clicking - How come? And how do I grab the correct window title from a window id?
Last edited by graph (2013-05-05 08:18:10)

man xprop wrote:If the desired window is not the root window, it may be selected in two ways on the command line, either by id  number such as might be obtained from xwininfo, or by name if the window possesses a name.
The id you obtained from xprop is the WM_CLIENT_LEADER, also listed in the WM_HINTS as the group leader. So that appears to be something like a root window for Firefox, not necessarily the one you see (with the title you want).

Similar Messages

  • Get window titled "AppleSyncNotifier.exe-entry point not found"

    Get window titled "AppleSyncNotifier.exe-entry point not found"  In the window it said "The procedure entry point sqlite3_wal_checkpoint could not be found in the dynamic link library SQLite3.dll." Cannot install any iTunes upgrades because of this. Tried deleting and reinstalling iTunes but the deletion could not be accomplished because of this problem. How do I fix this?  Thank you.
    Nelson

    I still cannot update my iTunes.  But I'll have to figure how to fix that.
    What error message are you getting when you try to update your iTunes, neloyo?

  • How to get Windows Server 2012 trial license key?

    How to get Windows Server 2012 trial license key? I'm trying to install WinServer 2012 Trial on a VMWare Workstation 9. I'm asked for the product key during set up. If I ignore putting in the key (since I don't have one) The install fails stating no valid
    key. I tried this with Oracle's Virtual Box and the same thing happens. I tried using Majic JellyBean to find the key, but that only works on pre-installed OS. A Technet article said to use aaaa-bbbbb-ccccc-ddddd etc. in the spaces. That doesn't work either.
    Articles all over the web seem to have other people in the same boat. Please help :)

    Download the trial version from here -
    http://www.microsoft.com/en-us/server-cloud/evaluate/trial-software.aspx  It does not require a key.  If the software is asking for a key, it is not the trial copy.  Where did you get your copy?
    .:|:.:|:. tim

  • How to get windows username printed on each page irrespective of application? we have cm6030f.

    How to get windows username printed on each page irrespective of application? we have HP CM6030F.

    Hi,
    Normally, you will receive a Windows Azure Pass from your local Windows Azure team. Please try to contact your local Windows Azure contact (http://support.microsoft.com/gp/customer-service-phone-numbers?wa=wsignin1.0
    Also, you could see this page
    http://www.windowsazurepass.com/AzureU/AcademicFAQ and apply the free trial azure via (http://www.windowsazurepass.com/AzureU/).
    Q: I am a student. Can I apply for a pass?                     
    A: Windows Azure Educator Grants are only for valid faculty. If your faculty has been awarded a Windows Azure Educator Grant, you will be able to get a pass through him/her for you coursework. If you are interested in learning more about Windows Azure,
    we encourage you to share these Educator Grants with your faculty or sign up for the FREE 3-month trial offer. 
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get window system user?

    Hi,
    How to get window system user use PL/SQL(form develope6i)?

    If you don't use Oracle database then you will have to do one of two things:
    (1) Now I'm back in the office I can check D2KWUTIL. The version I have comes with Forms6.0, so it is somewhat out of date, but it has a method called WIN_API_ENVIRONMENT.Get_Windows_Username - which works for NT/95 only, although I'm sure a later version will support more recent OS.
    (2) If that's no good then you'll have to use whatever facilities your database offers: I only know Oracle.
    I also repeat my suggestion that you try the Forms forum for additional help. This is the Database forum and so is focused on serverside Oracle PL/SQL. For your needs the Developer Suite forums are better.
    Cheers, APC

  • How to set window title using cfdocument format="FlashPaper" ?

    Does anyone know how to set the the browser window title when using:
    <cfdocument format="FlashPaper">
    #docContent#
    </cfdocument>
    The variable docContent is a fully formed html document, complete with <head> and <title> elements, yet <cfdocument> doesn't pick up the title I've specified. I'm wondering if anyone has done this before???
    Thanks!

    Yes, I tried that, but <cfdocument> replaces any content that I add. I cannot view the source for the page, but at least according to FireBug, when I view the page contents, I get:
    <html>
    <head>
    <title>print.cfm - print.cfm (application/x-shockwave-flash Object)</title>
    </head>
    <body marginwidth="0" marginheight="0">
    <embed width="100%" height="100%" type="plugin" src="http://127.0.0.1/tss/print.cfm?id=expeditions_staff&start=1" type="application/x-shockwave-flash">
    </body>
    </html>

  • HDD failure, I'd like to know how to get Windows 7 back on it.

    Hello everyone, I've had a HDD issue lately, but before I move on to describe my issue, here are the specs of my notebook:
    HP Pavilion dv6-3264ca
    AMD Triple-Core CPU 2.2 Ghz
    6GB RAM
    128MB ATI Graphic Card
    750GB Toshiba HDD
    Windows 7 64-bit
    The issue:
    Recently I've had a very unfortunate HDD failure. The recovery partition wouldn't even load. I tried booting my notebook on Linux with the HDD still attached, and it wouldn't read. I extracted the HDD and placed it in an HDD-enclosuer and it still wouldn't load on Windows XP or Vista or 7. It would however read in the device manager of Windows and also in the BIOS.
    I needed to extract some high-priority data from there so I managed to retrieve all my data safely through a data recovery service, but now the drive is rendered useless. I was told a low-level format might be able to help it be usable again, and if that were to happen, the recovery partition would then be removed in the process. 
    In addition to that, I would like to install Windows 7 64-bit onto the drive, but the notebook box did not come with an installation CD, which is quite frustrating. Is there any way HP can let me download Windows 7 through some warranty service?
    I have a one-year warranty on my laptop.
    So in closing, I would like to know if I can get Windows 7 back onto my HDD for free, or if I need to go about buying Windows 7 again.
    Any advice from you kind folks?
    This question was solved.
    View Solution.

    Hi,
    Here are Two options.
    1.  If you have ( or can borrow ) a retail Windows 7 installation disc that is exactly the same version as your OEM installation - ie if your notebook came with Windows 7 Home Premium 64bit this is the exact retail version you would need.
    If you don't have access to a retail disc, you can create an installation disc yourself - just download the correct Disc Image from the link below and use an application such as ImgBurn to burn the ISO correctly to a blank DVD.
    http://www.mydigitallife.info/download-windows-7-iso-official-32-bit-and-64-bit-direct-download-link...
    Use the disc to perform the installation, enter the Windows activation key found on the underside of your notebook when requested and when the installation has completed, use the 'Phone Method' detailed in the link below to activate the OS - this method supported by Microsoft and is popular with people who just want a clean installation of Windows 7 without the additional software load normally bundled with OEM installations.
    http://www.kodyaz.com/articles/how-to-activate-windows-7-by-phone.aspx
    Any additional drivers you may need can be found Here.
    2.  You can order a replacement set of Recovery Discs using the link below - these cost around $30 if you live in the US.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00810334&cc=us&lc=en&dlc=en
    If you have any problem with this link, order them directly from HP.
    If you live in the US, contact HP Here.
    If you are in another part of the world, start Here.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • How to get windows 7 on mac

    Hello I have bought my Macbook Pro 13" 2 weeks ago how install i windows 7 on it what do i need to install windows 7??

    hans_k wrote:
    So i need copy disk of windows 7 ISO image
    You know where I can get windows 7 ISO Image??
    You buy it, try Amazon.

  • How to get windows form object of a MMC snapin node using MMC automation object model

    Hello,
    I am using automation object model for an existing mmc file and just trying to traverse all nodes of it. And i am able to do so.
    My query is : how can i get the access of windows form object of a particular node . Windows form is present in result pane of a node, i want to get access of that so that i can perform some automation on that form.
    http://msdn.microsoft.com/en-us/library/aa815049(v=vs.85).aspx
    I found that if OCX control is in result view of any node, then "view object -> control object property" returns
    the automation interface supplied by the control in the result view. 
    However, if result view is HTML view then how to get the automation interface of that result
    view.
    Thanks in advance,
    Sumit

    Hi Sumit,
    I read the link you provide above. It seems that when you want to achieve your target by using MMC automation
    object model, you need to use codes. Based on the programming language, if use VB, I suggest you post the question in
    VB Forum. If you want to use C#, may post in
    C# Forum.
    In addition, there is an answered question, may help you to find the correct forum.
    MMC development forum?
    http://social.microsoft.com/Forums/en-US/3796a8e9-674e-4da0-a40e-4e4b69575c8e/mmc-development-forum?forum=whatforum
    Since, it’s more related to development. We may can’t provide some more detailed information. Thanks for your
    understanding.
    Hope this helps.
    Best regards,
    Justin Gu

  • How to forbid window title bar to be draged?

    If a top level vi has the window title bar,how to forbid user to drag the title bar to change window's position?
    P.S. vi's property "Allow user to resize window" has been forbidden.
    LabVIEW 8.6

    Unfortunately, the LabVIEW event structure does not provide an event like "Panel Move" or a similiar stuff.
    I think, you have two different options:
    a) Either use the event structure -> timeout case to set (if necessary) every Xms with the invoke method "Front Panel.Runtime Position.Custom" the position of the VI.
    b) Probably you find an appropriate function in the attached zip file
    Thanks,
    ThSa
    http://www.newgistics.com
    Attachments:
    WinUtil.zip ‏647 KB

  • How to get windows username & password

    Hi friends,
    Requirement is to get windows username & password,
    My server is Tomcat4.0,
    My code in login.jsp page is
    <%
    String auth = request.getHeader("Authorization");
    if (auth == null) {
    response.setStatus(response.SC_UNAUTHORIZED);
    response.setHeader("WWW-Authenticate", "NTLM");
    return;
    if (auth.startsWith("NTLM ")) {
    byte[] msg = new sun.misc.BASE64Decoder().decodeBuffer(auth.substring(5));
    int off = 0, length, offset;
    String s;
    if (msg[8] == 1) {
    off = 18;
    byte z = 0;
    byte[] msg1 = {(byte)'N', (byte)'T', (byte)'L', (byte)'M', (byte)'S',
    (byte)'S', (byte)'P', z,
    (byte)2, z, z, z, z, z, z, z,
    (byte)40, z, z, z, (byte)1, (byte)130, z, z,
    z, (byte)2, (byte)2, (byte)2, z, z, z, z, //
    z, z, z, z, z, z, z, z};
    response.setStatus(response.SC_UNAUTHORIZED);
    response.setHeader("WWW-Authenticate", "NTLM "
    + new sun.misc.BASE64Encoder().encodeBuffer(msg1).trim());
    return;
    else if (msg[8] == 3) {
    off = 30;
    length = msg[off+17]*256 + msg[off+16];
    offset = msg[off+19]*256 + msg[off+18];
    s = new String(msg, offset, length);
    //out.println(s + " ");--------------------------> here getting system_name
    else
    return;
    length = msg[off+1]*256 + msg[off];
    offset = msg[off+3]*256 + msg[off+2];
    s = new String(msg, offset, length);
    //out.println(s + " ");
    length = msg[off+9]*256 + msg[off+8];
    offset = msg[off+11]*256 + msg[off+10];
    s = new String(msg, offset, length);
    out.println("Hello <span style='position:relative; width:190;"
    + " height:10;filter:glow(Color=#009966,Strength=1)'>");
    out.println(s + "</SPAN>");----------------------------------->here getting loginname.
    %>
    from this i was able to get systemname & username,How do i get password.
    Is it possible to get password?
    Thanks,
    Satya.

    There's no way to get the password. NTLM uses a two-round challenge-response scheme which never send the password (neither clear nor encrypted) on the wire.
    Why do you need the user's password? Is your service going to access a backend service using the user's credential? If so, you may need to use Kerberos delegation.

  • How to get windows XP login name in SAP.

    I want get windows XP login name in SAP,  which funcion module can  and How method can, thanks.

    hi,
    GUI_GET_DESKTOP_INFO – Returns information about the end-users desktop
    TH_USER_INFO – Returns information about user
    Try this FM, not sure if it return windown user name....give it a try.
    Hope this helps, Do reward.
    Edited by: Runal Singh on Mar 27, 2008 4:16 PM

  • How can set window title programmatically

    how to set the window title programmatically
    for example the main vi i have a combo box  which stores some names
    exp: abc
            bcd
            cde
    then it will pass the data to another vi all the names use the same vi to display the data
    i want the window title to be the name of particular name user selected.
     can anyone help me?

    Hi jeyanthi,
    attached you will find an example.
    Hope it helps.
    Mike
    Attachments:
    Unbenannt 2_LV80.vi ‏13 KB

  • How to get "Windows Installer CleanUP" application.

    I use PC Vista Home Premium, and I use Adobe Acrobat Standard 8, till now it is working very well and nothing wrong. I would like to install an application of "Windows Installer CleanUP" to my PC for sometime in future I may need to use it, but I do not know how to get it to download and install the "Windows Installer CleanUP" into my PC Vista Home Premium.
    Please help and teach me. Thank you for your time and attentions.

    Since that is a MicroSoft product, you might have more luck at MicroSoft support site or forum dealing specifically with MicroSoft products.

  • How to get windows user identity after deploying code in IIS6.1

    Hi,
    In my asp.net application I have to get windows user identity. My backend is oracle.
    I set the windows authentication mode and impersonate to true. But still I'm not getting the actual windows user name.
    Please tell me how to get it.
    k.Bhaskar.

    Hello,
    For this kind of issue please consult on IIS forum:
    http://forums.iis.net/
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Payment advice is not issued

    Hi expert, I have made a payment run to pay 2 vendors. I have selected a variant to create payment advices. When I do the print out, I get only 1 payment advice (for 1 of the vendors). What could be the reason why the payment advice for the other ven

  • No scrubber for podcast app on iPhone 4s?

    It looks like the latest update only has a scruber when it is operated on the iPhone 5? Is there no way to scrub or even see the timeline on earlier models? Does anyone know how to fix this?

  • How to list folder sizes in Terminal

    I pulled a command off the Internet, but it does not run correctly in my Terminal (using ZSH): find $1 -type f -print0 | xargs -0 stat -f'%z' | awk '{b+=$1} END {print b}' | awk '{ sum=$1 ; hum[1024**3]="Gb";hum[1024**2]="Mb";hum[1024]="Kb"; for (x=1

  • How to reorder columns in JTable between sessions without serialization?

    I have a situation where the column widths and names of a JTable are saved to DB(there is no serialization). Upon starting a new session, the JTable needs to be displayed with reordered column. For example, let us say the default JTable has columns a

  • Determine if commenting is allowed in PDF?

    Is there a way in Workbench to determine if a PDF allows commenting, short of trying to add a comment and catching the exception? I know I could test the properties of a PDF to see if it's a fillable form, but that is not the only case where commenti