Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Assume that I am running vlc on desktop 5. I want to pause it when I switch to some other desktop and resume when I switch back to desktop 5. How to achieve this effect in xmonad?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

In vlc, go to the Preferences (CTRL+P) screen, then on the left there is a button named Interface which shows a Look and feel group of options, containing a checkbox Pause playback when minimized: check it!

It will automatically play/pause when you switch from/to the workspace. Better, if you have a dual screen, even if you work on the other screen it will continue to play the video until you switch the workspace where vlc is.

In other words, it will play the video only when vlc is visible, as soon as vlc is hidden the video is paused.

share|improve this answer
    
Worked like a charm. Thanks. –  Dilawar May 7 '13 at 15:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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