Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. lazily relocated series of X11 windows
Forum Updated to NodeBB v4.3 + New Features

lazily relocated series of X11 windows

Scheduled Pinned Locked Moved Solved Brainstorm
2 Posts 1 Posters 617 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Kent-DorfmanK Offline
    Kent-DorfmanK Offline
    Kent-Dorfman
    wrote on last edited by
    #1

    In my reality, one of the first tenants of effective computer use is to be lazy and let the tools do things for me. I have a two monitor twinview display 1920x1080 times 2 pixels and I need to display the output from one program on the left monitor (offset x=0) and the manipulation program on the other monitor (x=1920). These are preexisting programs that have their own mechanisms for setting setting geometry and location. Second monitor program is a pyqt5 app I wrote that spawns multiple dialog windows.

    IIRC, X11 provides for a "location hint" capability in the apps. but the window manager is generally free to override that value and place the window where it wants to. FWIW, I'm using openbox as my "liteweight" window manager. I don't subscribe to any of the gnome crap.

    I am searching for a linux-world wrapper that will allow me to manually override the window location hint such that I can do something like (relocate x=1920 my_program.py) and for my_program the relative display geometry would start at 1920, or x-1920 as far as the program is concerned.

    running X11 in a dual display (:0.0 and :0.1) configuration would make this problem go away, but that presents other problems since most/all desktop managers are fairly brain-dead with regard to running X in dual display configurations, and many other things then don't work correctly.

    Startup would be x=$(retrieve_db_entity); (do_display $x &); (other_display do_manip $x)
    other_display is the wrapper I'm looking for.

    Any suggestion for apps that provide the needed wrapper capabilities?

    I light my way forward with the fires of all the bridges I've burned behind me.

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      so no group feedback on this question but I did manage to locate (by accident) a utility that accomplishes the task.

      xdotool windowmove {windowid} {x} {y}

      uses XTEST extension which insers emulated mouse and keyboard events to the X server.

      I light my way forward with the fires of all the bridges I've burned behind me.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved