PDA

View Full Version : Terminal Commands for Hidden Settings (Leo+SL)


SomniusX
09-27-2009, 12:50 PM
Καλησπέρα κοινότητα,

πέρνω το θάρος να κοινοποιήσω μερικά κολπάκια που εντόπισα στο net τον τελευταίο καιρό που ασχολούμαι με την φάση "OSx86" που μπορούν να κάνουν την καθημερινή σας χρήση καλύτερα και πιο άνετη ! ;)

Έχουμε και λέμε..

Feel free to add any of your favourites in the comments.

1. defaults write com.apple.Dock showhidden -bool YES
Makes hidden applications' dock icons translucent. NO to reverse.
http://macosxtips.co.uk/index_files/translucent-icons-hidden-dock-applications.png


2. defaults write com.apple.iTunes invertStoreLinks -bool YES
Normally the arrows next to artists and albums in your iTunes library search the iTunes store when you click them. This command changes them so that clicking will search your iTunes library instead. Put NO at the end to reverse.


3. defaults write com.apple.dashboard devmode YES
This allows you to drag widgets out of Dashboard onto the desktop. Requires the dock to be relaunched to take effect, so type "killall Dock" and press enter. Now, if you click and hold onto a widget in the dashboard and press F12 to return to the desktop, the widget won't disappear with the rest. Put NO at the end to reverse.
http://macosxtips.co.uk/index_files/dashboard-widget-on-desktop.png


4. defaults write com.apple.mail PreferPlainText -bool TRUE
Forces all mail to be displayed as plain text. Replace TRUE with FALSE to reverse.

5. defaults write -g NSNavPanelExpandedStateForSaveMode -bool TRUE
Sets expanded save dialogs as default (showing column/list view of folders rather than a drop down menu). Replace TRUE with FALSE to reverse.

6. /System/Library/Frameworks/ScreenSaver.framework/Resources/ ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background
Displays the currently chosen screen saver to be shown as the desktop background. Press Control-C or Command-. to stop. More details here (http://macosxtips.co.uk/index_files/set-screen-saver-to-desktop-background.html).

7. defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo SystemVersion
Displays useful system stats in the login window. More details here (http://macosxtips.co.uk/index_files/useful-system-stats-in-mac-os-x-login-window.html). Replace "SystemVersion" with one of the following for different stats:
SystemBuild
SerialNumber
IPAddress
DSStatus
Time
HostName

8. sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add shortname1 shortname2 shortname3
To remove accounts from the login window type this command with the short name of each account you wish to remove. More details here (http://macosxtips.co.uk/index_files/hide-accounts-in-mac-os-x-tiger-login-window.html).

9. com.apple.frameworks.diskimages skip-verify TRUE
Skip disk image verification. Potentially risky, use with disk images from trusted sources. Replace TRUE with FALSE to reverse.

10. defaults write "Apple Global Domain" AppleScrollBarVariant DoubleBoth

Puts double scroll arrows at both ends of scroll bar. Use Appearance pane in system preferences to reset.

http://macosxtips.co.uk/index_files/horizontal-scroll-bar.png


11. defaults write com.apple.CrashReporter DialogType none
Disables the unexpectedly quit dialog that normally appears when an application crashes. Replace "none" with "prompt" to enable again.


12. defaults write com.apple.Safari WebKitHistoryItemLimit 2000 and/or
defaults write com.apple.Safari WebKitHistoryAgeInDaysLimit 30
Sets the history limit in Safari to a certain number of items and and/or a certain age.

13. defaults write com.apple.finder AppleShowAllFiles TRUE
Shows hidden files in the finder. Replace TRUE with FALSE to hide hidden files again

14. defaults write com.apple.safari IncludeDebugMenu 1
Enables the debug menu in Safari. Type again but with 0 instead of 1 at the end to disable.

15. defaults write com.apple.dashboard mcx-disabled -boolean YES
Deactivates Dashboard. Requires the dock to be relaunched to take effect, so type "killall Dock" and press enter. Replace YES with NO to enable again.


πηγή http://tinyurl.com/5waft7

SomniusX
09-27-2009, 12:54 PM
Πάμε τώρα και το 2ο πακέτο..

Spaces
defaults write com.apple.dock workspaces-edge-delay -float 0.5
Changes the delay when dragging windows off the edge of the screen to other spaces. Default value is 0.75.

defaults write com.apple.dock workspaces-wrap-arrows -boolean NO
Disables the wrap-around when using Control-Arrow keys to changes Spaces. To enable again, repeat with YES at the end.
http://macosxtips.co.uk/index_files/261107-spaces.png
Stacks
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
Creates a Recent Applications stack in your Dock, that you can change to display other recent items. To remove it, use the command defaults delete com.apple.dock persistent-others but be warned, this will remove all your stacks.

http://macosxtips.co.uk/index_files/261107-recent-stack.png

defaults write com.apple.dock mouse-over-hilte-stack -boolean YES
Adds a Mouse Over gradient to items in your stacks. To disable, repeat with NO at the end.

Dock
defaults write com.apple.dock no-glass -boolean YES
Change to 2D Dock. To change back to 3D, prepeat with NO at the end.

defaults write com.apple.dock tilesize -int 256
Allows you to increase the size of the Dock past the maximum allowed by the slider in System Preferences. Don't go larger than 256. Use the slider in System Preferences to shrink the Dock down again.

defaults write com.apple.dock largesize -int 512
Allows you to increase the Dock magnification past the maximum allowed by the slider in System Preferences. Don't go larger than 512. Use the slider in System Preferences to shrink the Dock down again.

defaults write com.apple.dock enable-spring-load-actions-on-all-items -boolean YES
Makes all items in the Dock spring loaded. For example, hold a file over an application and it will open or come to the front so you can drop the file onto a specific window. Repeat with NO to reverse.
Finder
defaults write com.apple.finder FXListViewStripes -bool FALSE
Removes the stripes in list view. Repeat the command with TRUE to reverse.

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
Resets the "Open With" menu, clearing duplicates. The command is different from the one in Tiger.

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
Changes the title of a window to its full path. Repeat with NO to reverse.

http://macosxtips.co.uk/index_files/261107-window-title-path.png

Spotlight
sudo chmod 0 /System/Library/CoreServices/Spotlight.app
Disables the Spotlight icon. Type "killall Spotlight" for changes to take effect. To re-enable it, type 755 instead of 0.

Time Machine
sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 7200
Changes Time Machine's backup interval. Requires an administrator password. Default value is 3600 (seconds).

iCal
defaults write com.apple.iCal IncludeDebugMenu YES
Enables the Debug menu in iCal, just like the Safari one. Repeat with NO at the end to disable.

Safari
defaults write com.apple.Safari DebugConfirmTossingUnsubmittedFormText NO
Disables the warning given when closing a window with text entered into a form that you haven't submitted. To bring back the warning, repeat the command with YES.

Check out this article for more Safari 3 tips (http://macosxtips.co.uk/index_files/tips-for-safari-3.html).

Menubar
Changing the menubar will require an administrator password and you will need to restart the Mac for changes to take effect.sudo defaults write /System/Library/LaunchDaemons/com.apple.WindowServer 'EnvironmentVariables' -dict 'CI_NO_BACKGROUND_IMAGE' 1
Remove translucency in menubar, turns it white.

sudo defaults write /System/Library/LaunchDaemons/com.apple.WindowServer 'EnvironmentVariables' -dict 'CI_NO_BACKGROUND_IMAGE' 0
Removes translucency in menubar, turns it grey.

sudo defaults delete /System/Library/LaunchDaemons/com.apple.WindowServer 'EnvironmentVariables'
Reverts back to default translucent menubar.

All Applicationsdefaults write -g PMPrintingExpandedStateForPrint -bool TRUE
Applications use the expanded Print dialog by default. Similar to the expanded Save dialog in earlier OS versions. Repeat with FALSE to reverse.

πηγή http://tinyurl.com/2zwbzk

diskeeper
09-27-2009, 12:56 PM
Force the Dock to only show running applications
defaults write com.apple.dock static-only -bool TRUE
killall Dock
Use FALSE at the end to disable.

SomniusX
09-27-2009, 01:24 PM
Force the Dock to only show running applications
defaults write com.apple.dock static-only -bool TRUE
killall DockUse FALSE at the end to disable.

Quite nice! :D

diskeeper
09-28-2009, 11:24 PM
New list view (only 10.6)
http://photos.smugmug.com/photos/663322399_crXW3-O.png

defaults write com.apple.dock use-new-list-stack -bool YES
killall Dock

Deny
defaults write com.apple.dock use-new-list-stack -bool NO
killall Dock


Snow Leopard Stack Highlight
http://photos.smugmug.com/photos/641991069_FvkM3-S.png

defaults write com.apple.dock mouse-over-hilite-stack -boolean YES
killall Dock

SomniusX
09-29-2009, 08:27 AM
And i was ready to post about the new list display thing..! :D

diskeeper
10-03-2009, 03:31 PM
QUICKLOOK SNOW LEOPARD:
To set any of these, go to terminal and enter in the code for whichever preference you want to set. Remember, to reset the setting to its default value, just change the "1" at the end to a "0" (or vice versa). Restart Finder for apply.

Enable "X-Raying" Folders with QuickLook
This one is pretty cool. It lets you show the contents of folders when QuickLooking them.
defaults write com.apple.Finder QLEnableXRayFolders 1
http://img225.imageshack.us/img225/7650/screenshot20090911at733.png

Change CoverFlow Background Color
Color value is in RGB. The code below will set it to white, as an example.
defaults write com.apple.Finder IKImageFlowBackgroundColor 255,255,255
http://img196.imageshack.us/img196/5738/screenshot20090911at818.png

Enable QuickLook Animation Slow Motion
To use QuickLook you normally just hit Space. This just lets you press Shift-Space and have the animation go slo-mo. Useless but hey.
defaults write com.apple.Finder QLEnableSlowMotion 1

Hide QuickLook Window When Finder Isn't In Front
By default, if you have QL open and switch to another app, the QL window stays visible. This changes that so that if you switch to another app, the QL window disappears.
defaults write com.apple.Finder QLHidePanelOnDeactivate 1

Keep Playing Icon Previews Even When The Icon Isn't Selected
If you're playing a movie using the "in-line preview" in the icon, by default if you select something else it stops playing. This lets you keep playing that in-line preview even when the icon isn't selected.
defaults write com.apple.Finder AutoStopWhenSelectionChanges 0

Keep Playing Icon Previews When Scrolling
By default if you are playing an inline preview, if you scroll down it will stop playing. This allows it to continue playing.
defaults write com.apple.Finder AutoStopWhenScrollingOffBounds 1

Enable In-Line Previews For ANY Icon Size
By default, you can only do those "in-line previews" when the icons are set at a certain size. This lets you do them at any size. (Change the "0" to any number 0-512.)
defaults write com.apple.Finder QLInlinePreviewMinimumSupportedSize 0
http://img27.imageshack.us/img27/8343/screenshot20090911at747.png

Show Frame Rate in CoverFlow
Self-explanatory.
defaults write com.apple.Finder IKImageFlowShowFrameRate 1

SomniusX
12-18-2009, 11:10 PM
More ?

come on! :D