Make Picture In Picture Browser Window Visible On All Workspaces in i3


Read {count} times since 2020

If you’re using i3 window manager and you want the Picture in Picture (PiP) window of Firefox and Chromium to be seen in all workspaces, just add this to your i3 config file :

for_window [title="Picture-in-Picture"] sticky enable

This will work for both Firefox and Chromium/Chrome PiP.

If it doesn’t work, open a video in Picture in Picture mode and run the command wmctrl -l in terminal which will produce a similar output :

0x0b800006  1 swift Screenshots - Dolphin
0x07e00005  2 swift Telegram (278659)
0x03c00003  3 swift Make Picture In Picture Browser Window Seen On All Workspaces in i3 - Subins Blog - Mozilla Firefox
0x08c00007  3 swift Konsole
0x08600001  4 swift Akkara Kazhchakal Ep 42 (Part A) - YouTube - Chromium
0x08c00003  3 swift Akkara Kazhchakal Ep 42 (Part B) - YouTube - Mozilla Firefox
0x03c008e7 -1 swift Picture-in-Picture
0x03c008e7 -1 swift Picture in picture

You can see the title of the PiP window there. For me, it was Picture-in-Picture for Firefox (v76) and Picture in picture for Chromium (v81). Use this obtained title in the i3 config above.

Sticky windows are windows that is visible on all workspaces. Read more about sticky windows in i3.

You can see my i3 config and other dotfiles here.