You can check the settings by:īTW: If you are having permissions problems on the /usr/local directories, Mjolnir will be even harder to install and get working.In order to use cmd+tab and shift+command+tab to switch windows, you need to use eventtap so that you can override the default app switcher hotkey. On my system, it is rwx on the user, and rx for everyone else. But, if an error is given, then your permissions for that directory are wrong. If this works, the workflows should start working fine. In a terminal, type the following:Ĭp /Applications/Hammerspoon.app/Contents/Resources/extensions/hs/ipc/bin/hs /usr/local/bin I suspect your /usr/local/bin directory has the wrong permissions and not allowing Hammerspoon to install. If you have further ideas what's causing the problems with Hammerspoon I appreciate it.Ĭould you open the Hammerspoon console and post what it says. I may try the Mjolnir workflow instead but this seems more convenient. Strange, maybe something special with my setup is causing this error. Unfortunately it is still not working, I get the same error message as before. Thanks for the info! I've installed the latest version (1.3) of the workflow and followed your updated instructions. Have fun controlling your windows from your iPad or iPhone. This workflow is also set up with a Remote page as well. This assumes all window movements were done with Hammerspoon and this workflow functions. This command undoes the very last window move. Just be careful to get the name of the application correct! The user can create more in the same manner. I also created a hotkey for doing Expose on FoldingText. If the application has only one window, it will simply bring it to the front. It will then put all the windows back to their original position and bring the one selected to the foreground. When an application is selected, it will show all of it's windows in a matrix on the screen and ask the user for the coordinates of the one to show. This gives other workflows or scripts the ability to interact with Hammerspoon through Alfred. There is also an external trigger HammerspoonCommand that will pass whatever is sent in the trigger to Hammerspoon using the command processor as in "hs:command". Type in a command string and it will be sent to Hammerspoon directly! There is also a hotkey set to this value as an example. Therefore, to move the current window to the upper left most block in a 3x3 matric, you would do "hs:setgrid 0, 0, 1, 1". This requires you to put the x, y for a starting position in a 3x3 matrix for the current window. This snaps the current window to the closes grid box area. You can then just select one to bring it to the front, select with alt key to hide it, select with ctrl key to unhide it, and select with the fn key to close the application. This moves the window to it's own space taking up the entire screen. This toggles the system fullscreen on and off for the current window. ![]() This moves the window to the maximum size on the screen. This moves the current window to the bottom half of the screen. This moves the current window to the top half of the screen. This moves the current window to the right half of the screen. This moves the current window to the left half of the screen. This moves the current window to the right 2/3 of the screen. This moves the current window to the left 1/3 of the screen. If caffenate is active, red "zzz" will be shown. If the AnyBar workflow and program are installed, then an indicator is shown. This nudges the current window to the right. This nudges the current window to the left. This opens the Hammerspoon console to the foreground. This tells Hammerspoon to reload the configuration file. This will work for all versions newer than version 1.4. This will upgrade the hammerspoon configuration file instead of writing the main config file. The original is backed up into the users home directory as hs.orig. After that, everything should just work.Ĭonfigure Hammerspoon with the configuration file that this workflow needs. Once installed, run the "hs:install" to set the configuration file this workflow expects and reload Hammerspoon. Follow this layout and you can do many neat things with Hammerspoon.įirst off, download Hammerspoon from. This is just a sample of the things that can be done. ![]() This workflow is for running scripts using Hammerspoon to control your windows. Installing Hammerspoon is much simpler without any external modules needing to be installed. This is a direct port of my Mjolnir Workflow.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |