tayafacts.blogg.se

Best use of hammerspoon
Best use of hammerspoon











best use of hammerspoon
  1. #Best use of hammerspoon code
  2. #Best use of hammerspoon mac

#Best use of hammerspoon code

The code I wrote to use semicolon like this sometimes breaks if I try to type too many actual semicolons in a row but I usually rely on JS Beautify to add those for me. That's done with Hammerspoon too! I've got an extra layer of hotkeys available to me to set up whatever else I can think of in the future. I've got another hotkey set up to unset it (semicolon+e).Ĥ) You may have noticed I'm using keyboard shortcuts with semicolon as a modifier key. There are a few things that need to happen before I start a screen recording (opening CamHead.app, setting my screen resolution, and showing the dock at a certain height so I can later crop the video to 16:9) and I have it all bound to a single hotkey (semicolon+r). Now my work music is a single keyboard shortcut (semicolon+m) and a few miliseconds away.ģ) Set up screen recording. I got tired of the friction around opening Spotify, going into my work playlist, hitting play, waiting several moments for the playlist to load, etc, so I downloaded a bunch of mp3s from YouTube and put them in ~/Music/work/.

best use of hammerspoon

I've got ctrl+space set to Vimcal, alt+space set to midnight.app (a time tracker I'm building), and ctrl+alt+space set to Things.Ģ) Start/stop playing my work playlist of lofi hiphop. Here are the top ways I'm using it right now:ġ) Hide/show apps similar to how iTerm lets you bind a hotkey to hide/show a terminal. It's one of the first must-have-for-a-usable-laptop tools I set up when I get a new MacBook. I have my "hyper" key bound to caps lock using Karabiner Elements (but it still works as a normal caps lock if you hold it for half a second). a replacement for Caffeine (menubar icon to keep computer from going to sleep) fuzzy-find popups (like Alfred/fzf) are built-in. hyper+L arranges my browser+editor+terminal in a standard layout, and I have other shortcuts to set apps to halves or thirds of the screen, or to another monitor. because it's easy to position apps wherever you want. if you can code a tiny bit of Lua there's no need for apps like Spectacle, Rectangle, Moom, etc. hyper+T for text editor, hyper+B for browser, hyper+S for shell) keyboard shortcuts for common apps (eg. It shows off a tiny bit of what you can do with Hammerspoon:

#Best use of hammerspoon mac

My mac has a very noisy fan, this just puts the CPU temperature and fan 0 ) end end dragging_window = nil end ) click_event : start () unclick_event : start () - hs. window : focusedWindow (): screen () local max = screen : frame () if m. window : focusedWindow (): frame () local screen = hs. , function ( e ) if dragging_window = nil then - check mouse is in titlebar local m = hs. Option keys when pressed in conjunction with other keys. Send the escape key when pressed alone, while sending the command, control and The following code JSON should be saved in a file in The first element (pun intended) in this setup is the configuration for Possibilities, for having global or application specific function keys,Įspecially when combined with Hammerspoon. Preferences, Keyboard, Modifier Keys, the option to use Escape key as theĪction to perform when the caps lock key is pressed.Ī whole new level however, by allowing the caps lock key to function as anĮscape key when pressed alone, and also acting as a “hyper” key when Mapping the caps lock key to escape is fairly easy in OS X. Movement, as well as a experiencing the tactile feedback of an actual key, Possible to map the escape key to the caps lock key, allowing for less hand

best use of hammerspoon

Rather than trying to hit the missing escape key, it is There is something reassuring about pressing a physical escape button.Īn ideal solution to this is to replace the functionality of the caps lock key While the escape “key” would still be present on the touch bar, The most important keys for a vim user, replacing it with On the other hand, the new Macbook Pros have eliminated the escape key, one of Keyboards rarely used, it is one of the largest buttons on a keyboard with Shortcuts can be used to trigger scripts or alter the environment as oneįor many, the caps lock key is one of the most useless keys on modern Specify configuration where events such as mouse clicks and drags, and keyboard Level of customisation to control the working environment. Hammerspoon is a OS X utility that provides a high













Best use of hammerspoon