bundleid cn.alanhe.bluetooth category Tools connections 2E00016A-4E8C-43F0-BFD3-6CF97DAF705D destinationuid DC42B42F-F309-46DD-A47D-217A0A3AD0A1 modifiers 0 modifiersubtext vitoclose 832C0E51-F875-4F3D-A35D-F1E97C20F727 destinationuid 9837B9A6-8571-4EC3-BF4F-903D94858783 modifiers 0 modifiersubtext vitoclose 8D207E95-E1FA-4B46-A459-CFB0711ACA46 destinationuid 957236BC-77F5-4EE7-BE5E-835F359364D6 modifiers 0 modifiersubtext vitoclose 957236BC-77F5-4EE7-BE5E-835F359364D6 9837B9A6-8571-4EC3-BF4F-903D94858783 destinationuid DD6CBA70-E875-425B-98E0-A31BBFAC566B modifiers 0 modifiersubtext vitoclose DC42B42F-F309-46DD-A47D-217A0A3AD0A1 destinationuid E636B4F9-5B0F-474B-8CD1-686DDAADAD09 modifiers 0 modifiersubtext vitoclose DD6CBA70-E875-425B-98E0-A31BBFAC566B destinationuid 8D207E95-E1FA-4B46-A459-CFB0711ACA46 modifiers 0 modifiersubtext vitoclose E636B4F9-5B0F-474B-8CD1-686DDAADAD09 destinationuid 9837B9A6-8571-4EC3-BF4F-903D94858783 modifiers 0 modifiersubtext sourceoutputuid 791991C0-DB9A-457D-AFA1-9F7FB395D10A vitoclose destinationuid 832C0E51-F875-4F3D-A35D-F1E97C20F727 modifiers 0 modifiersubtext vitoclose createdby Alan He description Connect and disconnect a bluetooth device easily disabled name Bluetooth Manager objects config argumenttype 2 keyword blue subtext Connect or disconnect a specific device text Bluetooth: Connect a specific device withspace type alfred.workflow.input.keyword uid 2E00016A-4E8C-43F0-BFD3-6CF97DAF705D version 1 config concurrently escaping 102 script /usr/local/bin/node pre-check.js scriptargtype 1 scriptfile type 0 type alfred.workflow.action.script uid DC42B42F-F309-46DD-A47D-217A0A3AD0A1 version 2 config conditions inputstring matchcasesensitive matchmode 4 matchstring 1 outputlabel uid 791991C0-DB9A-457D-AFA1-9F7FB395D10A elselabel else type alfred.workflow.utility.conditional uid E636B4F9-5B0F-474B-8CD1-686DDAADAD09 version 1 config concurrently escaping 102 script echo -n '' scriptargtype 1 scriptfile type 0 type alfred.workflow.action.script uid 9837B9A6-8571-4EC3-BF4F-903D94858783 version 2 config alfredfiltersresults alfredfiltersresultsmatchmode 0 argumenttreatemptyqueryasnil argumenttrimmode 0 argumenttype 2 escaping 102 queuedelaycustom 3 queuedelayimmediatelyinitially queuedelaymode 0 queuemode 1 runningsubtext Loading devices script /usr/local/bin/node list.js scriptargtype 1 scriptfile subtext Connect or disconnect a specific device title Bluetooth: Connect a specific device type 0 withspace type alfred.workflow.input.scriptfilter uid DD6CBA70-E875-425B-98E0-A31BBFAC566B version 3 config lastpathcomponent onlyshowifquerypopulated removeextension text {query} title Bluetooth Manager type alfred.workflow.output.notification uid 957236BC-77F5-4EE7-BE5E-835F359364D6 version 1 config concurrently escaping 102 script /usr/local/bin/node connect.js "{query}" scriptargtype 0 scriptfile type 0 type alfred.workflow.action.script uid 8D207E95-E1FA-4B46-A459-CFB0711ACA46 version 2 config lastpathcomponent onlyshowifquerypopulated removeextension text Bluetooth turned on title Bluetooth Manager type alfred.workflow.output.notification uid 832C0E51-F875-4F3D-A35D-F1E97C20F727 version 1 readme First run this command on a terminal: brew install blueutil brew cask install hammerspoon cp init.lua ~/.hammerspoon/ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash nvm install 10 uidata 2E00016A-4E8C-43F0-BFD3-6CF97DAF705D xpos 30 ypos 75 832C0E51-F875-4F3D-A35D-F1E97C20F727 note notice user,bluetooth opened xpos 280 ypos 430 8D207E95-E1FA-4B46-A459-CFB0711ACA46 xpos 700 ypos 425 957236BC-77F5-4EE7-BE5E-835F359364D6 xpos 890 ypos 415 9837B9A6-8571-4EC3-BF4F-903D94858783 note clear input xpos 530 ypos 105 DC42B42F-F309-46DD-A47D-217A0A3AD0A1 note precheck bluetooth status xpos 200 ypos 75 DD6CBA70-E875-425B-98E0-A31BBFAC566B colorindex 7 note 1. bluetooth is off,so auto turn on it 2. list devices xpos 520 ypos 415 E636B4F9-5B0F-474B-8CD1-686DDAADAD09 xpos 380 ypos 100 variablesdontexport version 1.0.1 webaddress https://1991421.cn