It's not possible? Says who?

Arch: post installation; herbstluftwm, flash

without comments

Using the Beginners’ Guide and the Xorg wiki pages, installing X is not very hard. I just installed the required packages with pacman.

Then I needed a window manager. I chose herbstluftwm, which I haven’t used until now. Thorsten, the author, studies at the same university as I and I think it’s a cool project. As I’m trying out new stuff anyway, the decision was a no-brainer.

I installed herbstluftwm-git via yaourt. I copied the example configuration files from /etc/xdg/herbstluftwm to ~/.config/herbstluftwm and created a .xinitrc.

Launching X with startx worked at the first attempt. chromium and flashplugin also were easy to install. Just sound didn’t work right away, which I solved by consulting the Advanced Linux Sound Architecture (ALSA) wiki page.

But fullscreen flash didn’t work right away. The first problem was that the browser window and the new flash window would be displayed side by side. This was solved by fetching, building, installing herbstluftwm-git again. My initial build was one or two days too soon, just before Thorsten did a new commit “respect new clients’ initial fullscreen state”. With the new version new flash windows start fullscreen, but the browser is still running in front of them. This is due to an default config entry “hc rule focus=off” which prevents new windows from receiving focus. I didn’t want to change the default behavior, so I prepared a browser window with a playing video and started “sleep 5; xprop” in a shell. I then switched the flash video player into fullscreen mode and when the mouse cursor changed to the xprop pointer, I clicked the flash window. I used the information from xprop to add a new rule to my config: “hc rule instance=exe class=Exe focus=on”.

I’m not sure if this will be specific enough, as “exe” looks pretty generic. But it will do for now.

Written by johnLate

March 31st, 2012 at 2:45 pm

Posted in Uncategorized

Leave a Reply