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 downstairs on my phone trying to VNC into my desktop upstairs but earlier today, I zoomed in with compiz on one of my screens so it makes using that screen over VNC almost impossible.

Now I could go upstairs... But I'm lazy!

Does anybody know a way to turn off zoom via the command line?

share|improve this question
    
The Windows Key and scroll with your mouse can zoom in and out of your screen. –  karthick87 Dec 4 '10 at 20:36
2  
My phone has a very limited keyset (no super key) and there's no mouse. –  Oli Dec 4 '10 at 21:51
add comment

2 Answers

up vote 9 down vote accepted

What a brilliant question! :-)

This is what you want:

xdotool keydown Super && for i in $(seq 0 30); do xdotool click 5; done && xdotool keyup Super

you probalby need to sudo apt-get install xdotool.

share|improve this answer
add comment

You can control Compiz via DBus, and there is even a helper python script to make it easier.

Example usage of the compiz-send.py script:

hello@world:~$ python compiz-send.py ezoom zoom_out_key

This will zoom out if you are using the Enhanced Zoom Desktop plugin.

More Examples.

share|improve this answer
add comment

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.