ncvilla.blogg.se

Hammerspoon window
Hammerspoon window













hammerspoon window
  1. #Hammerspoon window full
  2. #Hammerspoon window code
  3. #Hammerspoon window windows

MacOS lets you use Emacs editing commands in literally every text box.

hammerspoon window

If you know the basics of either of these, you’ll start wanting to use them everywhere. Emacs is kind of an application platform that happens to have a text editor in it. Vim lets you do build tiny macros with text on the fly. You may also see references to Zsh or Fish.

hammerspoon window

I don’t know of a good tutorial, but command line knowledge in general is super useful for a developer. Lots of small commands fit together in satisfying, occasionally productive ways. It’s much easier to automate terminal applications than it is UI stuff. Yes, you can use Alfred to launch a Hammerspoon macro that calls AppleScript. But it’s so useful you’ll probably end up using it quite a bit for automating GUI apps.

  • Wait half a second for search results to appearĪnd so on.
  • #Hammerspoon window code

    Applications don’t always do what you want them to do instantly, so you end up with lots of code that works like this: In my office I have a Sonos Port connected to my turntable and some powered speakers. We have a Sonos setup at home which I love. It lets you automate basically anything you can do with a mouse and keyboard. Hammerspoon is a desktop automation tool for macOS. Control Sonos from the Menu Bar using HomeAssistant and Hammerspoon. You’re gonna start running into this with Alfred workflows or maybe Hammerspoon pretty quick. You can make your terminal and IDE always open on the same screens in the same positions. You can mute iTunes when your laptop connects to wifi at work. It slightly overlaps with everything else on this list. In terms of power and ease of use, this is sort of a massive multipurpose chainsaw that you program using Lua. A completely keyboard driven interface on top of the reminders app. Function Returns the desktop window None An hs.window object representing the desktop, or nil if Finder is not running The desktop belongs to Finder.app.A menu command that searches the menus of the active application.A meme command that searches your gifs folder and pastes images into Slack.Ok, so the paid version of Alfred lets you create elaborate workflows using stuff you type into the launcher as input. Make the Enter key open files in finder.Make Caps Lock behave like Esc when pressed, but Ctrl when pressed with another key.

    #Hammerspoon window windows

  • Swap Cmd and Alt, but only on your Windows keyboard.
  • There are others, but those are the ones I primarily use.
  • Cmd+Alt+Ctrl+Arrow to shift a window between monitors.
  • Multiple times to cycle through window sizes.
  • Cmd+Alt+Arrow to shift a window to a side of the screen.
  • DevDocs.io is another great custom search to add. Add custom search keywords I have some set up to search the internal admin dashboard and wiki at work. Use it to launch all your applications, lock your computer, search your files, search the internet.

    #Hammerspoon window full

    System Preferences → Keyboard → Shortcuts → Full Keyboard Access… → All Controls Alfred This will enable you to press to switch between buttons in modal dialogs. In order of ease of use: MacOSįirst thing is to enable keyboard control of GUI elements. The most important quality in a tool is that it blends into the background and I don’t have to think about it. I didn’t know I had knowledge anyone wanted! Here’s a list of tools I regularly use to bend my environment to my whims. So I wrote some Lua code to do my window management stuff:įor a reference to others and a backup for me, I published that on Github.A coworker asked me to summarize the desktop utilities I use. Additionally, there’s a library for it that allows spaces management, which still seems to be a big problem for applications. There’s a single configuration file that can do various things. Hammerspoon is an automation framework, that’s basically a bridge of macOS core management features (like keyboard and mouse handling, window management, etc.) to Lua. With this in mind, Hammerspoon enters the state. MacOS tries its best to reset the application windows to the state the screens were attached last time, but some vendors seem to find ways to break that feature.Īnd there currently is no good window manager available, who supports windows on multiple spaces on multiple screens. Using a macOS laptop with various available screen configurations is cumbersome.















    Hammerspoon window