![]() We wanted to provide a more integrated experience. Mjolnir aims to be a very minimal application, with its extensions hosted externally and managed using a Lua package manager. Hammerspoon is a fork of Mjolnir by Steven Degutis. hammerspoon Share Improve this question Follow asked at 2:51 snowbound 1,682 2 20 29 Add a comment 1 Answer Sorted by: 0 I made an example which blocks CMD+F (Find) in Google Chrome and remaps CMD+N (New Window) to this functionality instead. An IRC channel for general chat/support/development (#hammerspoon on Libera).Contribution Guide for developers looking to get involved.Sample Configurations supplied by various users.There are several resources which can help you: Out of the box, Hammerspoon does nothing - you will need to create ~/.hammerspoon/a and fill it with useful code. Solution: Prefences > Security > Privacy > Allow Apps: Hammerspoon But still, I dont understand why hs.window.focusedWindow () returns something if it is not assigned to a variable and it returns nil when it is assigned to a variable. Drag Hammerspoon.app from your Downloads folder to Applications.With these, you can write Lua scripts to control many aspects of your OS X environment. What gives Hammerspoon its power is a set of extensions that expose specific pieces of system functionality, to the user. At its core, Hammerspoon is just a bridge between the operating system and a Lua scripting engine. ![]() A popular solution is to define super to be, and then define a rarely used key such as capslock to emulate pressing all three of those keys, effectivly giving you another modifier key.This is a tool for powerful automation of OS X. One downside to these kind of custom keybindings is the risk of colliding with other application or OS hotkeys. I like Hammerspoon because scripts you write against APIs easier to adapt to your exact workflow needs than the configuration of a limited set of features like you get from system settings or most window management software. bind (super, "s", toggleWindowFocus ( "Spotify" ) ) hs.window.animationDuration 0 function reloadConfig(files) local doReload false for ,file in pairs(files) do if file:sub(-4). bind (super, "a", toggleWindowFocus ( "Messages" ) ) bind (super, "r", toggleWindowFocus ( "Slack" ) ) bind (super, "e", toggleWindowFocus ( "Google Chrome" ) ) ![]() bind (super, "w", toggleWindowFocus ( "Code" ) ) bind (super, "q", toggleWindowFocus ( "iTerm2" ) ) new (windowName ) : getWindows ( ) if hs. There is a section devoted to window layout, sending windows to various grid. focusedWindow ( ) function toggleWindowFocus (windowName ) return function ( ) Hammerspoon is not only limited to launching commands triggered by keystrokes. ![]() Relevant section of my hammerspoon script: I think this pattern is less popular than it should be, because of how well suited it is to clean navigation between the half-dozen tools you use most often.įor me, that means using Hammerspoon (a lua API for Mac OS) to make a single set of hotkeys. I think that people commonly use ⌘+tab or alt+tab to cycle through their windows, which is better than using a mouse, but still results in an unconscious overhead many times per day, often at the moment you’re moving from one thought to another and most susceptible to distraction.Ī very clean solution is to set up “absolute” hotkeys that will always bring you to the window you need, versus the “relative” navigation of tabbing or of window management systems. One aspect of using computers that I don’t enjoy is the feeling of fumbling through many windows to find the information or tool you need. “First Order Retrievability” is the idea that the tools you use most should be directly accessible from your workspace, and able to be used without opening drawers, unzipping bags, or fuddling with your desktop manager. It’s a pointless delay that wrecks my pace-and mood.” ^ I despise not having the right tool or, worse, knowing I have it but not being able to find it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |