Is there a way to print things to the touchbar, preferably with the terminal? I have been trying to find documentation but I can't find any.
-
What problem are you trying to solve with this?– fsbCommented Feb 21, 2021 at 4:04
-
I want to display a timer– BlubberCommented Feb 21, 2021 at 4:29
-
Something like this?– fsbCommented Feb 21, 2021 at 4:51
-
Yes, but I want it to be able to sync it with a timer that I'm running in emacs– BlubberCommented Feb 21, 2021 at 5:57
-
2You have a lot of requirements that you didn't include in your question. We can't help you if you don't provide the info. See How to Ask for important info about asking questions on this site.– fsbCommented Feb 21, 2021 at 5:59
|
Show 2 more comments
1 Answer
Some AppleScript
-- https://forum.latenightsw.com/t/set-touchbar-to-show-f-keys/638/8
set touchBar to true
try
set touchBarText to do shell script "pgrep TouchBarServer"
on error
set touchBar to false
end try
if touchBar is true then
set fkeysSet to true
try
set fkeysSetText to do shell script "defaults read com.apple.touchbar.agent.plist | grep YOUR.APP.PREFS.HERE | grep functionKeys"
on error
set fkeysSet to false
end try
if fkeysSet is false then display dialog "Follow the instructions, etc."
end if
-
1This does not seem in any way to relate to the question? Cmd-Shift-6 saves a screenshot of what's on the TouchBar. It does not in allow you to display anything on the TouchBar. Commented Mar 15, 2021 at 11:42