![]() 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. BEST USE OF HAMMERSPOON UPGRADEThis 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. BEST USE OF HAMMERSPOON DOWNLOADFollow 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. Local alacritty = hs.application.This is a direct port of my Mjolnir Workflow. Hs.:subscribe(hs., function(window, appName) If alacritty = nil and hs.application.launchOrFocus(APP_NAME) thenĪppWatcher = hs.(function(name, event, app) Local mainScreen = hs.screen.find(spaces.mainScreenUUID()) If alacritty ~= nil and alacritty:isFrontmost() then Local alacritty = hs.application.get(APP_NAME) Hs.eventtap.keyStroke('cmd', 'return', 0, alacritty) , 'j', function ()įunction moveWindow(alacritty, space, mainScreen) # - buttonless: Title bar, transparent background and no title bar buttons # - transparent: Title bar, transparent background and title bar buttons # Spread additional padding evenly around the terminal content. # by DPI and the specified value is always added at both opposing sides. # Blank space added around the window in pixels. # Window padding (changes require restart) # If the position is not set, the window manager will handle the placement. # Window position (changes require restart) # fall back to the window manager's recommended size. # must be at least `2`, while using a value of `0` for columns and lines will # Number of lines/columns (not pixels) in the terminal. # Window dimensions (changes require restart) After some research, I found the perfect solution using a combination of the Alacritty config and hammerspoon. The only thing that was missing was the sweet Guake-style terminal that I had gotten used to with iTerm2, I'm totally dependent on being able to bring up a terminal on any screen with a keyboard shortcut. Alacritty feels stable as a rock, and the performance is off the charts. A few days ago I had a really frustrating day with iTerm2, so I decided to give Alacritty another try, and wow, what a difference. I tested it a few years ago, and it looked promising, but was way to buggy back then. It's minimal with no extra bells and whistles and it's really fast (no surprise, it's written in Rust). It seems to tick every box that I'm looking for in a good terminal emulator. I have had my eye on Alacritty for a while. One feature that I really liked though, was support for a Guake-style terminal (also called HUD or Quake style named after the game), you know the one that slides over the active window from the top of the screen. Using tmux I have no need for all the extra crap that is bundled into iTerm2 like tabs, panes, keyboard shortcuts, paste history, as this is handled by tmux in a standard manner everywhere I use a terminal. It is pretty nice, but I also use tmux (if you haven't heard about it, check it out immediately). As a programmer I spend a good chunk of my working day in a terminal and have up until recently used iTerm2 for MacOS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |