Git Product home page Git Product logo

Comments (6)

tokyo4j avatar tokyo4j commented on June 2, 2024 1

I usually find app_id and title of opened applications from window swicther, since I'm lazy to use third party apps.

from labwc.

guzz46 avatar guzz46 commented on June 2, 2024

The only thing that shows up in the window switcher is [xdg-shell] [xdg-shell] Picture-in-picture
I tried adding 'Picture-in-picture' but it doesn't work, I don't know if its the wrong window id or it just doesn't work for a picture in picture window

from labwc.

droc12345 avatar droc12345 commented on June 2, 2024

Wlprop is a badly named application, it DOES NOT WORK ON ALL wlroots compositors,
right now, it only works on sway and hyprland, and that's because of IPC.

There is no way to get runtime info of existing windows without modifying the compositor
or running in debug mode and parsing the debug output.

And I'm not sure that it would even be possible to get the info of something like PiP.
Not sure if window rules would even work on it anyway.

from labwc.

guzz46 avatar guzz46 commented on June 2, 2024

Success! I just had to change the identifier to title, well done labwc devs for creating a window manager with proper functionality, instead of just dumping windows either in the centre of the screen or in a cascade fashion, this is the window rule to open picture in picture in the bottom right corner of the screen.

  <windowRule title="Picture-in-picture" matchOnce="false">
    <skipTaskbar>no</skipTaskbar>
    <action name="ResizeTo" width="938" height="540" />
    <action name="MoveTo" x="981" y="540" />
    <action name="ToggleAlwaysOnTop"/>
  </windowRule>

from labwc.

droc12345 avatar droc12345 commented on June 2, 2024

Sweet, glad it works. I was not sure if windowrules would work on something like a PiP, as it's not a normal application window. It's a media window attached to another app (chromium, firefox, etc).

Enjoy

from labwc.

Consolatis avatar Consolatis commented on June 2, 2024

There is for example wlrctl or lswt

from labwc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.