Results 1 to 7 of 7

Thread: Get Window Title with Bash script under Wayland

  1. #1
    Join Date
    Oct 2011
    Beans
    97

    Get Window Title with Bash script under Wayland

    Have a bash script that gets the window title under X11 but now that Ubuntu is running Wayland this doesn't work. Any hints in getting a window title from Wayland with bash?

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Get Window Title with Bash script under Wayland

    What tool does the bash script use so we don't waste our time trying to test?

  3. #3
    Join Date
    Oct 2011
    Beans
    97

    Re: Get Window Title with Bash script under Wayland

    Prior to 21.04 Ubuntu used X11 to manage desktop and I used an bash script using xprop to gather the information I wanted (in this case the window title). With Wayland trying to find a similar tool to xprop to get the title. You can get it with Looking Glass but that is not a command line tool.

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Get Window Title with Bash script under Wayland

    Wayland is supposed to be a simpler and more secure windowing environment. Many of the capabilities we use/abuse with X tools worked by using some of the non-secure "features" of X11.

    I was going to suggest xdotool but it doesn't work with Wayland. There is ydotool, but it doesn't have the same capabilities and needs to run as root to steal access to input devices. https://github.com/ReimuNotMoe/ydotool May have enough to accomplish what you need, but probably can't get the window title. ;(

  5. #5
    Join Date
    Oct 2011
    Beans
    97

    Re: Get Window Title with Bash script under Wayland

    Something change in my 21.10 system. The script using xprop is again returning the window title under Wayland.

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Get Window Title with Bash script under Wayland

    21.10 isn't released - not until late October. Post about it all belong in the "Ubuntu Development Release" sub-forum.

    Support for 20.10 will end in a few weeks, so moving to 21.04 is mandatory at this point.

    Call me confused.

  7. #7
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Get Window Title with Bash script under Wayland

    Thread moved to Ubuntu Development Version. which is more appropriate and a better fit for this thread about 21.10.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •