Picture in Picture on all workspaces

Prerequisites

sudo pacman -S wmctrl

How

  1. Make the Firefox window Always on Top via right click on the title bar.

  2. Open a video and activate Picture in Picture in Firefox.

  3. Execute:

wmctrl -r Picture-in-Picture -b add,sticky,above

Now you can view the Picture in Picture window on all workspaces.