Advertisement
Terminal

Quick Tip: Trick Out Your Mac with Terminal

by

The Mac OS X operating system is already really sleek, but we're going to look at how to use terminal to activate some cool hidden settings that will make your Mac even better. The terminal tricks I'll be showing you range from adding spaces to your dock to freeing your Dashboard widgets from the Dashboard. So let's get started!

Note: These Terminal commands have all been tested on Snow Leopard and should run just fine on Lion and Mountain Lion.

 


Drag Dashboard Widgets onto your Desktop

Dashboard Widgets on the Desktop
Dashboard Widgets on the Desktop

This is probably my favorite Terminal trick. With the code below, you can move any Dashboard Widget from Dashboard to your desktop. Just click on and hold the widget, then hit F4 to exit Dashboard and release. Your widget will be on the desktop for your convenience, this is great for to-do lists or weather widgets!

defaults write com.apple.dashboard devmode YES

You will have to log out for this to have a effect, if you decide you want to switch back, simply replace YES with NO. In fact, replacing YES with NO works for just about any Terminal command that has a YES or NO at the end of it.


Make Hidden Dock Apps Appear Transparent


Hidden dock apps become transparent

This Terminal command will make apps that you've hidden have a transparent icon in the Dock. This is useful since you don't have to right click them to find out if they are still hidden or not. You can now just take a quick glance at your dock to find out!

defaults write com.apple.Dock showhidden -bool YES

Press enter, then type:

killall Dock

Press enter again, your dock will hide itself and come back, and that's it! Hidden apps are now transparent in your dock! Again, you can switch back by replacing YES with NO.


Add Spaces to your Dock


Add Spaces to your Dock

Adding spaces to your Dock is a great way to organize your apps. To get started, type or paste the following code into Terminal:

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'

Press enter, now type:

killall Dock

Your Dock will come back up with a empty space in it. You can treat this just like any app, click and drag to move it around, or drag it out of the dock to remove it. Do the command as many times as you need to for more dock spaces.


Change the Format for Screenshots

If you're like me, you probably find it annoying that when you take a screenshot with Grab, you have to use a program like Adobe Photoshop to convert it to a jpg for web use. Well hold on, because terminal has a fix for this too! Here is the code you need:

defaults write com.apple.screencapture type jpg

You will need to log out for this to have an effect. Once you have logged back in, Grab will take screenshots in jpg format.

Tip: You can replace "jpg" with a few different formats, such as "png" or "tiff".


See The Contents of a Folder with QuickLook


See The Contents of a Folder with QuickLook

When you normally use Quicklook, it will just show you the folder icon, the total amount of memory the folder is taking up, and the amount of items inside that folder. With this Terminal trick, the folder icon will also show previews of the contents of itself!

defaults write com.apple.finder QLEnableXRayFolders -boolean YES

Wait a few seconds, then open and close a folder using Quicklook (press spacebar when a folder is selected). It will x-ray the folder to show its contents!


Conclusion

I hope you enjoyed these Terminal commands, each of which allows you to add a little bit of customization to your Mac.

These were just a few of my favorite Terminal tricks, Please feel free to share your favorite tips and tricks below in the comments!

Related Posts
  • Computer Skills
    OS X
    Improve Workflow by Avoiding the DockDock
    The Dock has been a permanent feature of OS X, however, it's slowly losing relevance as a place from which to access apps. There are more efficient and faster ways to access the programs you need. In this tutorial I show how to ditch the Dock and work smarter.Read More…
  • Computer Skills
    Productivity
    Improve Productivity With Virtual Desktops From TotalSpaces2Totalspaces400
    TotalSpaces2 from BinaryAge is the, self-described, "ultimate grid spaces manager". It is built on top of OS X's Mission Control and provides a great deal of control over your Mac's work environment. In an earlier tutorial, I taught you about Speeding Up Your Life With Launchbar. In this tutorial I'll show you how to use a grid of spaces to efficiently swap between applications to improve your productivity.Read More…
  • Computer Skills
    Productivity
    How to Become an OS X Screenshot WizardScreenshots400
    Whether you know them as screen dumps, screen captures, screenshots, screen grabs or print screens, the process of capturing the visual information — displayed on the screen of your Mac — is a relatively straightforward process …once you know how. In this tutorial, I’ll show you how! I’ll look at ways to, easily, capture screenshots on your Mac using a little known utility on your Mac, using keyboard shortcuts and by using a third-party developer app.Read More…
  • Computer Skills
    Terminal
    40 Terminal Tips and Tricks You Never Thought You NeededIcon terminal 2x
    The Terminal is an exceptionally powerful tool, providing a command line interface to the underpinnings of OS X. It’s a topic we’ve covered at length before with our popular series Taming the Terminal. There’s a great deal that Terminal can do, from moving large numbers of files to changing preferences that we didn’t even know exist. To demonstrate just how versatile the Terminal is, I’ve rounded up 40 truly excellent Terminal tips and tricks that can come in very handy. Read More…
  • Computer Skills
    Customization
    Over 15 Cool Ways to Personalize Your MacPrefapp retina
    On days when I have nothing to do, I look around my Mac for cool features I haven’t tried before. I’m always learning more about what all those info screens in Activity Monitor mean, and you can never know enough about Terminal. Last time I had a look around, I discovered that holding the Command key and then dragging an icon on my menu bar would allow me to reorganize the order. This got me thinking: maybe there are some other cool ways to personalize things on OS X. In this article, I’ll go over a bunch of different ways that you can turn your Mac into a device that works for you.Read More…
  • Computer Skills
    Terminal
    10 Terminal Commands That Every Mac User Should KnowTenterminalcommands
    The Terminal in OS X is often, in my opinion anyway, an overlooked area of the operating system. Most newcomers to Macs look at it with fear, as the sight of anything code-related or advanced is enough to put them off for life. Fortunately, you don't have to be scared of Terminal and think of it as a feature just for the tech-minded. Knowing some basic Terminal commands can really enhance your experience of OS X. So, for all the beginners out there, here is my pick of the top 10 Terminal commands that every Mac user should know.Read More…