I've managed to get YouTube Flash videos fullscreen by using two tips, but whenever I move the mouse pointer to a different screen (thereby changing the application focus) the fullscreen mode is canceled. Is there some way to ensure that only application focus changes on the same screen cancels the fullscreen mode?

  • 1
    No as this is a security feature of flash - see superuser.com/questions/16055/… for a possible workaround – Ulrich Dangel Mar 16 '13 at 14:17
  • In the last few days, this appears to have stopped happening (disclaimer: I use dwm, not awesome). I use Flash 11.7.700.203 through Pepper. I just hope that it stays this way -- please let me know if the latest unstable version works for you. – Chris Down May 27 '13 at 12:33

Adding the following rule to your rc.lua config file (in ~/.config/awesome/) should fix the problem:

{ rule = { instance = "plugin-container" },
  properties = { floating = true,
                 focus = yes } },

It keeps the focus on the flash plugin, so the full screen mode is never canceled (until you press Esc).

| improve this answer | |
  • 1
    Doesn't work for me. – l0b0 Dec 19 '13 at 23:08
  • 2
    Also use: christianiversen.dk/2013/07/… – ehuang Nov 15 '14 at 18:48
  • 1
    Great, works for me with sudo sed -i -re s/_NET_ACTIVE_WINDOW/XNET_ACTIVE_WINDOW/ $(locate libflashplayer.so), derived from the link by @ehuang. Replace $(locate libflashplayer.so) by the location of your libflashplayer.so if you don't have locate installed. – exic Feb 9 '15 at 19:45

I don't have a solution to the flash problem, but here's a workaround. The following snippet maps to mod-v and starts the highlighted URL (the X PRIMARY selection) in VLC.

globalkeys = awful.util.table.join(globalkeys,
  awful.key({ modkey }, "v",
    function ()
      awful.util.spawn_with_shell('vlc $(xclip -o)')

This method can be combined with the cclive tool, which downloads videos from popular sites (also works by highlighting the URL0 and plays them back in VLC or a player of choice.

| improve this answer | |
  • How is this a workaround? – g33kz0r Mar 26 '13 at 4:32
  • @g33kz0r It's a workaround since it solves half of the problem: After focusing a different application on the other screen the video is still playing fullscreen. – l0b0 Mar 27 '13 at 15:20
  • @l0b0 That's how VLC works and I like it that way. You press f to enter fullscreen and f again to exit fullscreen. Why should it leave fullscreen just because I focus another application? It could be an option, though. – Marco Mar 27 '13 at 15:33
  • But this only applies to direct links to videos, right? I thought this question was about videos embedded in browsers a la YouTube? – g33kz0r Mar 27 '13 at 16:21
  • @g33kz0r Did you try to open VLC, press ctrl-n and paste a YouTube URL? That's exactly what this snippet does. (The old version before the edit even skipped the copy-paste step and opened the current video in VLC immediately.) – Marco Mar 27 '13 at 16:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.