How can I fade the screen to black?

I've got an Ubuntu setup with OpenBox, and I'm just using it to play various media using vlc and feh.

When switching media I have been "fading out" by using xrandr --brightness to decrement the screen brightness, then swap out the media, then fade back in.

This approach is a bit tedious, and on my new Intel Ivy Bridge GPU, it looks terrible and lags horribly.

Is there another way to simply fade out / back in, perhaps with a screensaver or other X command?

1 Answer

I'm currently trying to solve this problem by using wmctrl the window management controller.

I can switch to a blank screen, swap out the media, then switch back to the original screen.

All I need to do now is get a transition happening when switching screens, but it appears openbox does not support transitions.. I suppose that deserves it's own question.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like