Skip to content

Add SafariPiP spoon#356

Open
alivault wants to merge 1 commit intoHammerspoon:masterfrom
alivault:add-safaripip-spoon
Open

Add SafariPiP spoon#356
alivault wants to merge 1 commit intoHammerspoon:masterfrom
alivault:add-safaripip-spoon

Conversation

@alivault
Copy link

@alivault alivault commented Feb 5, 2026

Summary

Adds a new spoon to toggle Picture in Picture mode for videos playing in Safari.

Features

  • Toggle PiP on/off with a customizable hotkey
  • Works by clicking Safari's audio button in the toolbar and selecting the PiP menu item
  • Automatically detects whether PiP is active and toggles accordingly

Requirements

  • macOS with Safari
  • A video must be playing in Safari for PiP to work
  • Hammerspoon must have Accessibility permissions

Usage

hs.loadSpoon("SafariPiP"):bindHotkeys({
    toggle = {{"ctrl", "alt"}, "P"}
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant