Git Product home page Git Product logo

wayland-picture-in-picture's Introduction

Picture-in-picture Overlay that works on wayland

Play youtube or open any other website on an unclickable window that will stay always on top (yes, even on fullscreen windows) and will not steal your focus!

Requirements

pip install PyGObject

Getting started

Run the script with url of your choice

python main.py https://www.youtube.com/embed/dQw4w9WgXcQ&autoplay=1

This will open a transparent window with your website in a rectangle (by default it will take 1/16 of your screen) That window will cover your whole screen (even fullscreen windows) and prevent you from clicking on anything

You can now:

Change position by dragging on empty space It will glitch if you let go of the button when your cursor is on top of the rectangle due to the way iframe handles events you can fix it by pressing Escape

Change size with a handle in bottom right corner of a rectangle Change opacity with scroll wheel

When you're done, press Enter This will make a window clickthrough so you can do whatever you want and the overlay will stay on top of everything

To close the overlay just kill python process

Protip

You can make this more user friendly by binding it to a hotkey, passing url from the clipboard and saving process ID to kill it later

wayland-picture-in-picture's People

Contributors

verdequar avatar

Stargazers

 avatar

Watchers

 avatar

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.