Fntoggle
Hacked together OS X Function Key Toggle but it doesn't use gui scripting via applescript unlike almost everything else on the internets!
Install / Use
/learn @nelsonjchen/FntoggleREADME
fntoggle
A very, very badly hacked together executable that can turn on and off function keys on my Retina MacBook Pro 15" (Mid-2012). What I'm saying is that it WORKS4ME and with ControlPlane.
At least it does not use GUI scripting with Applescript to accomplish this goal.
Usage
Media Keys
./fntoggle off
Standard Function Keys
./fntoggle on
Toggle state
./fntoggle
Note: You may need to toggle the state on or off explicitly before toggle previous state invokation can work.
Note that the original F9-F11 keys are most likely still bound to the Expose stuff. This simple program does nothing to address that.
References
https://github.com/schismtracker/schismtracker/blob/master/sys/macosx/ibook-support.c
http://stackoverflow.com/questions/6968677/cfnotificationcenter-usage-examples
https://bignerdranch.com/blog/notifications-part-2-handling-and-spying/
Known Issues
The Keyboard Preference Pane does not update with values set by this tool while running.
License
The Schism tracker code is GPL2 but wow a bunch of it looks to be the product of disassembling the Keyboard Preference Pane anyway like me. Regardless, this project could be GPL2.
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
