![]() ![]() The default code is a bit ugly for my liking. You can use the default code in hs.window.switcher docs or use mine below. ![]() With Hammerspoon up and running, adding the window switcher is just a case of cutting and pasting some code into your config file, saving it then reloading. But if you’re a regular reader of this blog, you’ll already have installed Hammerspoon after reading my earlier posts on it here and here and here. ![]() Another advantage here is that the window switcher will include full screen and non-full screen windows in multiple spaces, which command backtick typically does not handle well, something I find particularly frustrating when using Xcode.Īdding a window switcher is easy and doesn’t require any hacking. This is particularly useful if you have a couple of windows open in several applications, and it is much faster and neater than first using command tab and then command backtick to cycle through an app’s windows. The window switcher allows you to jump between different windows, both those of other apps and the same app with a hotkey like option tab, which sits nicely next to command tab in my muscle memory! If you’re a big fan of the command tab Application switcher, you might enjoy adding a window switcher to your list of keyboard hotkeys. See the man launchctl page for more options on using its reboot command.įeatured picture: Steampunk boots by Imp0s5ible This command restores all current window sessions (similar to checking the ‘Reopen windows when logging back in…’ option in the normal Restart dialog) but without the delay of the standard restart procedure. What’s even nicer is you don’t lose any unsaved data either. I was astonished at just how fast the reboot is. To see for yourself, execute this in Terminal: We’re going to leverage a little-known command in the launchctl command line tool that will teardown and rebuild your login sessions in an instant. That’s the time I achieved on a clunky late-2014 iMac with a sluggish old mechanical 1TB Fusion drive.įorget the Apple menu and the ‘Restart…’ menu option and don’t worry about how many login items or startup scripts you’ve got either, this method will slice through them all. And I’m not talking about SSD-only Macbook*’s either. If you need to teardown your current login session and get your mac up and running in a hurry, here’s a neat little trick that should take you from login to logout and back again in as little as 10 seconds.
0 Comments
Leave a Reply. |