Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How get an item in control center of Touch Bar on the right?

The app TouchSwitcher add item beside lightscreen and volume items : https://hazeover.com/touchswitcher.html enter image description here

Is there a solution to display an item into the control strip on the right region of touch bar ?

I can't find any help in official documentation about it... Please help me !

like image 500
MattOZ Avatar asked Dec 01 '16 20:12

MattOZ


People also ask

How do I edit Control Center on Mac?

Customize Control Center On your Mac, choose Apple menu > System Preferences, then click Dock & Menu Bar . Click a section in the sidebar to show items that are always in Control Center, or that you can add. Control Center: The items in this section are always shown in Control Center; you can't remove them.

How do I customize my Apple touch bar?

Change Touch Bar settings On your Mac, choose Apple menu > System Preferences, click Keyboard , then click Keyboard. Set options for the Touch Bar. Touch Bar shows: Click the pop-up menu, then choose what you want the Touch Bar to show—for example, app buttons or the expanded Control Strip.


1 Answers

After decompiling, I discovered some APIs in a framework called DFRFoundation located under /System/Library/PrivateFrameworks, and a related method DFRElementSetControlStripPresenceForIdentifier. I find it quite difficult to get further, so I answer here only to let you know that the API for this is in a private framework. Hope someone would reveal the secrets someday.

like image 114
yxonic Avatar answered Sep 17 '22 02:09

yxonic