Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I like the fact that scrollbars disappear in Lion, but only if I don't have an external mouse plugged in to my MacBook Pro. Is there a way to have this behavior always be on?

I know I can set the vanishing scrollbars to be "always off", but I'm basically looking for a way to do the opposite.

Asked in other way: I know we can set the scrollbars to be Always On in the System Preferences, but looking for a way to do it Automatically NOT based on input device. I don't want to see a scroll bar unless/until a mouse is present on the system.

preferences screenshot

share|improve this question
    
This question is slightly confusing. You are wanting to have the scroll bars only appear when you are scrolling correct? –  Chris Aug 2 '11 at 14:03
    
The default behavior is such that this only works if an external mouse is not plugged in. I want the scrollbars to only appear when scrolling with an external mouse plugged in. –  user9004 Aug 2 '11 at 15:34
    
Sorry dude. Read it wrong. I have no answer for that question –  Chris Aug 2 '11 at 16:49

5 Answers 5

The option you mention in System Preferences does exactly what you say (or its behavior was changed since your question).

The first option, "Automatically based on input device" does what you want (I think, but I may have misunderstood your question). When you have a mouse plugged in, it shows the scrollbars. When you unplug your mouse, it will revert to the default of only showing scrollbars when you are scrolling.

I hope this answered your question. Please let me know if it doesn't, as I probably misunderstood what you are asking.

share|improve this answer

I don't think there's a specific setting for what you're after, but you could use an application like ControlPlane (formerly MarcoPolo) or Sidekick (there's other alternatives too if you are keen to keep looking).

These let you set up different profiles for using your computer in different places or contexts. Typical usage is to detect what location/context based on some inputs (e.g. wireless networks, bonjour hosts on the network, peripherals plugged in) and automatically switch to the appropriate profile (or just let you manually do it).

Profiles can include things like Network Location, turning on/off Time Machine, changing some system settings, and running various scripts.

So for your situation, you'd potentially just have two profiles: Mouse and Trackpad. The presence/lack of your mouse could be detected to allow automatic switching, and you'd have to set up some rule(s) to change the System Settings as required.

The appropriate command-line to change your scrollbar viewing would be:

defaults write -g AppleShowScrollBars Automatic

For that last value, you can choose between Automatic, WhenScrolling and Always (i.e. the three options presented in System Preferences) — thanks to this answer for the tip.

I won't go into too much detail as there's plenty of other places that document the various System Preferences and modification of those via defaults write (you can use defaults read to see various settings for yourself too). So it's then just a matter of coming up with the specific commands to run as you switch between your Mouse and Trackpad contexts.

(If you've already got different contexts, you might need to duplicate them, e.g. "At Work with Mouse" vs "At Work with Trackpad" and set them up similarly but with the command to enable/disable scroll bars on switching to said context).

share|improve this answer

Show ScrollBars:

  • Automatically Based on input device

  • When Scrolling

  • Always

The settings are self explanatory. If you prefer the scrollbar behavior not to change depending on the input device (eg. when you connect an external mouse.) Choose the second option.

share|improve this answer
    
This doesn't explain how to make the settings active without a mouse present, does it? –  bmike Nov 19 '12 at 20:18

Chris is right, set the option he told you about to "Scrolling". Now you only get scrollbars while actually scrolling around. (one notable exception being Firefox, which still shows a scrollbar)

share|improve this answer
    
He wants them to appear when the mouse is plugged in, but not appear when using the trackpad if I understand right. I don't think there is that option –  Chris Aug 2 '11 at 16:49
1  
There is no option to completely disable the scrollbars, true. Especially not based on input device. –  leberwurstsaft Aug 2 '11 at 16:51

For the essence of the question – "Can I set Lion scrollbars to always be off? …" – the short answer is:

  • no (sorry).

Never show scroll bars

This seems impossible.

In Stack Overflow, under Disabling the auto-hiding of scroll bars on Lion, an answer lists three possible values, none of which compare to never:

  1. Automatic
  2. WhenScrolling
  3. Always

With Mountain Lion, I experimented with an unlisted value – Never – then restarted the computer. Result: scroll bars appeared sometimes.

share|improve this answer

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.