These are useful in case the window is in one of the corners. The arrows can be used to expand the height/width to be one third, two thirds or again one half.įor example if the window is in the top-right corner, pressing hyper + up the window height will be resized to be one third, while pressing hyper + right the window width will be resized to be one third in this case hyper + left and hyper + down will move the window to the top-left and bottom-right corners, respectively. When the window is in the corner, it will have one half of screen height and one half of screen width. hyper + down + left: move the window to the bottom-left corner.hyper + up + left: move the window to the top-left corner.hyper + down + right: move the window to the bottom-right corner.hyper + up + right: move the window to the top-right corner.hyper + left: move to the left half of the screenīy repeating these shortcuts the window is resized to be one third or two thirds and again in one half.hyper + down: move to the bottom half of the screen.hyper + right: move to the right half of the screen.hyper + up: move to the top half of the screen.caps lock key) with Karabiner and Seil to act as hyper key. If you consider this too verbose for your personal keyboard interactions, you can also change it, for example replacing it with an unused key (e.g. This means that each shortcut will start by pressing these three keys. The hyper key is defined as ctrl + alt + cmd. If those are different, change the name in the Hammerspoon a configuration to be aligned with the name in the Spoons folder.In the snippet above configure Miro's Windows Manager in the following way: Hyper key spoon extension).įor example, if the name in the init script is "ShiftIt", the Spoon in the ~/.hammerspoon/Spoons folder should be ShiftIt.spoon. Make sure that the Spoon name, provided in installation step 3 matches with the folder name in ~/.hammerspoon/Spoons (without the. If Hammerspoon prints errors during initialisation, like "attempt to index nil value" from Hammerspoon's init script ( ~/.hammerspoon/a), the ShiftIt spoon may have been misconfigured. "attempt to index nil value" error during startup If after installation you run into errors like attempt to index a nil value, please make sure to verify that Hammerspoon has the right permissions on your Mac. Known issues "attempt to index nil value" error while using shortcuts ctrl(^) + alt(⌥) + cmd(⌘) + = Make current window biggerĬtrl(^) + alt(⌥) + cmd(⌘) + F Toggle full screen for current windowĬtrl(^) + alt(⌥) + cmd(⌘) + Z Toggle zoom for current windowĬtrl(^) + alt(⌥) + cmd(⌘) + N Move current window to next screenĬtrl(^) + alt(⌥) + cmd(⌘) + P Move current window to previous screen.ctrl(^) + alt(⌥) + cmd(⌘) + - Make current window smaller.ctrl(^) + alt(⌥) + cmd(⌘) + C Centralize current window.ctrl(^) + alt(⌥) + cmd(⌘) + M Maximise current window.ctrl(^) + alt(⌥) + cmd(⌘) + 4 Snap current window to the right bottom quarter to the screen.ctrl(^) + alt(⌥) + cmd(⌘) + 3 Snap current window to the left bottom quarter to the screen.ctrl(^) + alt(⌥) + cmd(⌘) + 2 Snap current window to the right top quarter to the screen.ctrl(^) + alt(⌥) + cmd(⌘) + 1 Snap current window to the left top quarter to the screen.ctrl(^) + alt(⌥) + cmd(⌘) + down Snap current window to the bottom half to the screen.ctrl(^) + alt(⌥) + cmd(⌘) + up Snap current window to the top half to the screen.ctrl(^) + alt(⌥) + cmd(⌘) + right Snap current window to the right half to the screen.ctrl(^) + alt(⌥) + cmd(⌘) + left Snap current window to the left half to the screen.Having issues? Check out the Known issues section, have a look in the issues section, or create a new issue. The ShiftIt spoon is now ready to use, enjoy. If you just enabled permissions for Hammerspoon, you might need to restart the application for the permissions to take effect. Go to System Preferences > Security & Privacy > Accessibility and make sure Hammerspoon.app is checked. Without those permissions, it can't move and modify windows. Make sure Hammerspoon has the 'Accessibility' permissions. hs.loadSpoon("ShiftIt")Ĭlick on the Hammerspoon menubar icon again, and click on 'Reload Config'. Paste the following configuration in the a file, save it and close it. An a file should now open in your editor of choice. Hammerspoon should prompt that the newly installed spoon is now available.Īlternatively you can use SpoonInstall Step 3Ĭlick on the Hammerspoon menubar icon and click on 'Open Config'. Make sure Hammerspoon is started (You should see the a Hammerspoon logo in your menubar).ĭownload the ShiftIt spoon. Download the latest release here and drag it to /Applications.Īlternatively you can install it using brew: brew install -cask hammerspoon A ShiftIt like Hammerspoon window management configuration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |