Skip to content
turbineBMWPublic

About

Edge-docked picture-in-picture for Omarchy.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Edge PiP

A picture-in-picture window that makes room when you need it. Edge PiP docks the window to a screen edge. Hover over it and it slides aside, leaving a small tab so you can reach what was underneath. Move away and it comes back.

Edge PiP docking, hiding, and resizing

Install

Requires Omarchy with its Quickshell shell, Hyprland, and Python 3. Install it with:

omarchy plugin add https://github.com/turbineBMW/PIP --enable

Omarchy's usual browser picture-in-picture rule tags these windows pip. For another app, give its floating window that tag in your Hyprland config. No packages or system settings are changed by the plugin installer.

Use

The tab lets you drag the PiP to another edge, show it to use the player's own controls, resize it, adjust its opacity, or close it. Click the window-and-eye button to reveal the PiP; it stays in place while the pointer is over it, then goes back to dodging the pointer after you leave. A play/pause button appears when the player supports MPRIS. The last dock position, size, and opacity are remembered.

While Omarchy's screensaver is open, the PiP and its controls tuck away automatically. The PiP returns to its saved dock when the screensaver closes.

Click the overlapping-squares icon to bring the PiP back with an opacity slider. Drag it to adjust the window live from 10% to 100% opacity; move the pointer away from the PiP to dismiss the slider. The chosen opacity stays in effect whether the player is focused or not.

Adjusting PiP opacity live with the slider

You can also call the actions from a keybind or terminal:

omarchy-shell pip toggle
omarchy-shell pip peek
omarchy-shell pip resize
omarchy-shell pip transparency

To adjust the behavior, add settings to the plugin entry in ~/.config/omarchy/shell.json:

{
  "id": "turbinebmw.pip",
  "margin": 10,
  "hideDelay": 0,
  "showDelay": 120,
  "autoHide": true
}

margin is the edge gap in pixels; delays are milliseconds. Set autoHide to false to keep the window docked without tucking it away. Use omarchy-shell pip transparency to open the slider when auto-hide is disabled. The optional pollInterval setting controls pointer sampling and defaults to 33 ms.

Remove

omarchy plugin remove turbinebmw.pip

A tucked PiP returns to its dock and its previous opacity is restored when the plugin unloads. The plugin's saved position, size, and opacity remain in ~/.local/state/omarchy/pip-dock.json; you can delete it later if you no longer want those preferences. Edge PiP is released under the MIT license.

About

Edge-docked picture-in-picture for Omarchy.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages