Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I didn't know about `screencapture`. That's a fun one.

The Linux equivalent of `open` is `xdg-open`. I usually alias it to `op`, since `/bin/open` exists.

Another bit of terminal-sugar for OS X users:

    alias lock='/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend'
And most Linux users:

    alias lock='gnome-screensaver-command -l'
If you find yourself accidentally triggering hot corners, the lock command is your savior.

I've sorta-documented this stuff over the years, but only for my own memory. https://gist.github.com/ggreer/3251885 contains some of my notes for what I do with a clean install of OS X. Some of the utility links are dated, but fixing the animation times really improves my quality of life.



Additional, Linux equivalents of pbcopy/pbpaste are available in a number of competing utilities such as xcut, xclip and xset. Unfortunately none of these are installed by default on standard installations, at least not on any common distribution I've ever seen.


cmd+shift+eject


Ctrl + Shift + Eject

or

Ctrl + Shift + Power (on MacBook Pro's that don't have an eject key)

Cmd + Shift + Eject doesn't do anything.


This sleeps/suspends rather than just locking. Equivalent to closing your MacBook.


If you have your Mac set to never sleep/are using Caffeine for instance, then it simply puts the display to sleep, the rest of the computer keeps on humming along.

Not entirely equivalent to closing your MacBook.


Doesn't change the fact that cmd+shift+eject doesn't actually do anything (unless it's on an older version of OSX)


Correct, I wrote the wrong key.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: