1

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.

7
  • What problem are you trying to solve with this?
    – fsb
    Feb 21, 2021 at 4:04
  • I want to display a timer
    – Blubber
    Feb 21, 2021 at 4:29
  • Something like this?
    – fsb
    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
    – Blubber
    Feb 21, 2021 at 5:57
  • 2
    You 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.
    – fsb
    Feb 21, 2021 at 5:59

1 Answer 1

-1

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
1
  • 1
    This 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.
    – jksoegaard
    Mar 15, 2021 at 11:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .