Hammerspoon scripts12/27/2022 Hs.hotkey.bind(, "F12") end)ĪppWatcher = hs.application.watcher. If (eventType = hs.) thenĪppName = "Star Wars™: X-Wing Special Edition" orĪppName = "Type the exact name of the game window here" do not edit any code until the appName variables begin!įunction applicationWatcher(appName, eventType, appObject) I hope this is helpful to anyone who experienced the same frustrations I did. 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. You can always add more games as well simply "Open Config" again, edit what's there and "Reload Config". At its core, Hammerspoon is just a bridge between the operating system and a Lua scripting engine. Note that the "appName" variable in the code above must match the main window of the game exactly. Command+Alt+0 maps to F10, Command+Alt+- maps to F11 and Command+Alt+= maps to F12. The code maps Command + Alt + to corresponding function keys, and only applies to the games you specify so you don't need to worry about the rest of your system. People use it for all sorts of automations, with key remappings and quick window switchers being the most common applications. Start your game up and you should have hot keys! Hammerspoon is a macOS automation framework that allows you to hook into all sort of OS interfaces using Lua scripts. Click the Hammerspoon icon again and click "Reload Config". Further instructions are available there.Ĥ. Copy the script into your text editor and customize for your games. A menu icon should appear in the top right of your screen. Download, install and launch Hammerspoon.Ģ. Hammerspoon lets you write your own keyboard mappings if you know the Lua programming language. I gave this a shot and wound up creating a tangle of conflicts with my system hotkeys. Others have noted Karabiner, a keyboard customizer for OS X. It looks like that's outdated, and is otherwise disabled / impossible to do with the Galaxy client. Some people have mentioned using DOSBox Mapper to fix their problems. Thought I'd do a writeup here.įirst, some outdated or otherwise tough information: I'm a programmer and, with a little digging, I was able to come up with something that I think most everyone could use or customize to help solve the problem. I've noted across game forums a number of complaints about function (F1 - F12) hot keys conflicting with the system, rendering games frustrating or impossible to use.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |