Controlling volume and brightness with two/three/four finger drags on the touchbar


#1

I was fed up with volume and brightness taking up valuable space on the touchbar, so I set up these gestures:

Code:

Volume control:

{
  "BTTTriggerType" : 647,
  "BTTTriggerTypeDescription" : "Three Finger Swipe Right",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 198,
  "BTTPredefinedActionName" : "Volume Up (Small Step)",
  "BTTEnabled2" : 1,
  "BTTRepeatRate" : 1.5,
  "BTTRepeatDelay" : 0,
  "BTTUUID" : "A67E509B-65A7-4806-AD7C-69968CAA3DBB",
  "BTTEnabled" : 1,
  "BTTOrder" : 19
}
{
  "BTTTriggerType" : 646,
  "BTTTriggerTypeDescription" : "Three Finger Swipe Left",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 199,
  "BTTPredefinedActionName" : "Volume Down (Small Step)",
  "BTTEnabled2" : 1,
  "BTTRepeatRate" : 1,
  "BTTRepeatDelay" : 0,
  "BTTUUID" : "102D410B-2E08-4A74-8225-B727C6E7B734",
  "BTTEnabled" : 1,
  "BTTOrder" : 20
}
{
  "BTTTriggerType" : 644,
  "BTTTriggerTypeDescription" : "Two Finger Swipe Left",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 25,
  "BTTPredefinedActionName" : "Volume Down",
  "BTTEnabled2" : 1,
  "BTTRepeatRate" : 1.5,
  "BTTRepeatDelay" : 0,
  "BTTUUID" : "3BBFA260-6CC6-456E-B28F-852EFFE1E640",
  "BTTEnabled" : 1,
  "BTTOrder" : 23
}
{
  "BTTTriggerType" : 645,
  "BTTTriggerTypeDescription" : "Two Finger Swipe Right",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 24,
  "BTTPredefinedActionName" : "Volume Up",
  "BTTEnabled2" : 1,
  "BTTRepeatRate" : 1.5,
  "BTTRepeatDelay" : 0,
  "BTTUUID" : "4CF900C2-DC65-4A7D-88F6-19273EAB5D5D",
  "BTTEnabled" : 1,
  "BTTOrder" : 24
}

Screen brightness control:

{
  "BTTTriggerType" : 648,
  "BTTTriggerTypeDescription" : "Four Finger Swipe Left",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 29,
  "BTTPredefinedActionName" : "Brightness Down",
  "BTTEnabled2" : 1,
  "BTTRepeatRate" : 1,
  "BTTRepeatDelay" : 0,
  "BTTUUID" : "E3AD8DAA-C79E-4ADB-BEF1-E8ABEE992682",
  "BTTEnabled" : 1,
  "BTTOrder" : 17
}
{
  "BTTTriggerType" : 649,
  "BTTTriggerTypeDescription" : "Four Finger Swipe Right",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 28,
  "BTTPredefinedActionName" : "Brightness Up",
  "BTTEnabled2" : 1,
  "BTTRepeatRate" : 1,
  "BTTRepeatDelay" : 0,
  "BTTUUID" : "1D8C39CB-94B4-4E10-B3F6-DAAD73503854",
  "BTTEnabled" : 1,
  "BTTOrder" : 18
}

Keyboard brightness control:

{
  "BTTTriggerType" : 648,
  "BTTTriggerTypeDescription" : "Four Finger Swipe Left",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 32,
  "BTTPredefinedActionName" : "Keyboard Illumination Down",
  "BTTEnabled2" : 1,
  "BTTRepeatRate" : 1,
  "BTTRepeatDelay" : 0,
  "BTTUUID" : "9724FB7C-2B8C-4DF1-A6E7-7B12541BC7AB",
  "BTTEnabled" : 1,
  "BTTRequiredModifierKeys" : 131072,
  "BTTOrder" : 21
}
{
  "BTTTriggerType" : 649,
  "BTTTriggerTypeDescription" : "Four Finger Swipe Right",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 31,
  "BTTPredefinedActionName" : "Keyboard Illumination Up",
  "BTTEnabled2" : 1,
  "BTTRepeatRate" : 1,
  "BTTRepeatDelay" : 0,
  "BTTUUID" : "01689A80-2860-4A64-BF1B-824FC6867998",
  "BTTEnabled" : 1,
  "BTTRequiredModifierKeys" : 131072,
  "BTTOrder" : 22
}

#2

Neat shortcuts! New here, how do I import them? They don't seem to be a downloadable .json


#3

I would also like to know this :wink: Seems like I'd be able to work it out, but I obviously have too generous a view of my own abilities