Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm wondering if there's a way to make one action have two different effects depending on the workspace it's on.

For example: if on workspace 1, then the command to focus Empathy's chat list is used, but if on workspace 2, then the command to open Chrome is used.

It would be linked to mousing over to the right edge of the screen in Compiz.

Is this possible?

share|improve this question

1 Answer 1

Have a look at xdotool. get_desktop will output the current desktop in view.

share|improve this answer

Your Answer


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.