![]() I hope this post can help beginners to get started with hammerspoon (and spoons). In this video ,I show you the way I use HammerSpoon to manage my windows on Mac with multi monitor and multi monitorif you are interested in the config ,chec. The more you know about hammerspoon, the more you can control your MacOS. ![]() By the way, you can learn Lua by reading other’s hammerspoon config files. Hammerspoon is a powerful tool allowing you to have powerful effects on your system by writing Lua scripts. SetCaffeineDisplay(hs.caffeinate.get( " displayIdle ")) SetCaffeineDisplay(hs.caffeinate.toggle( " displayIdle "))Ĭaffeine:setClickCallback(caffeineClicked) But now I can create a menubar by the following config: caffeine = hs.menubar.new() I used to type caffeinate -t 99999 to make OS awake. Hs.wifi.associate(studySSID, " myPassPhrase ") Hs.hotkey.bind(hyperShift, ' 8 ', function() Hs.wifi.associate(bedroomSSID, " myPassPhrase ") Hs.hotkey.bind(hyperShift, ' 9 ', function() So I can config like this to make sure I can connect to the stronger one. Categories Featured About Register Login Submit a product. In some rooms, the signal of router A is stronger, while in other rooms, router B is better. A list based on our community, research Pulover’s Macro Creator, WinAutomation, AutoKey, Albert, Hammerspoon, Apple Automator, and xdotool. In modules/a : hyper = )ĪppWatcher = hs.(applicationWatcher) This does add some complexity so in the meantime I would suggest AutoHotkey if youre on Windows and perhaps Hammerspoon on macOS. Now we can dive into a more complex task: windows manager. I have looked into adding something like this and maybe will in the future. Then try to press cmd+option+t, the clock should appear again. Hs.hotkey.bind(hyper, ' t ', function() spoon.AClock:toggleShow() end) Now let’s start your first config script, edit the a file: hs.loadSpoon( " AClock ") You can see the clock display on the screen. ![]() I’ve grown quite fond of window hints, which is when Hammerspoon will display an icon and letter over every window. Additionally, Hammerspoon has a slew of prewritten libraries one can tap into. Then launch the hammerspoon console and input hs.loadSpoon( " AClock ")īingo! We just finish the hammerspoon version of “hello world” :) Unfortunately, my favorite tiling window manager i3wm gaps. This was originally motivated by my switching to Spacemacs and. The tabs sit in the top right of the title bar and allow you to easily switch between windows of an app with keyboard shortcuts (e.g ctrl+tab number) and later by clicking. Let’s getting started.įirst, install hammerspoon, you can easily install it using homebrew: brew cask install hammerspoonĪnd make sure these files and folders exists: ~/.hammerspoonĭownload it and double click to unzip and install it, it will be installed in the Spoons folder. The second Hammerspoon module I wrote was one that allows you to add tabs to any OSX Application. I hope this post can help beginners to get started with hammerspoon (and spoons). So I deceided to rewrite my hammerspoon config file with spoons. I have used hammerspoon for a long time, recently I found that the new version of hammerspoon supported Lua plugins called “Spoons”. Teddy Ma's Homepage | Powerful Hammerspoon
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |