1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-11 17:38:38 +00:00

Compare commits

..

No commits in common. "3e82676008925314beb87d9aac69cd61547ce5c5" and "7a1800252cbfe9b9385fd2bcf2eb320a31058a7e" have entirely different histories.

6 changed files with 20 additions and 20 deletions

2
.github/FUNDING.yml vendored
View File

@ -3,4 +3,4 @@
issuehunt: Toxblh issuehunt: Toxblh
patreon: toxblh patreon: toxblh
ko_fi: toxblh ko_fi: toxblh
custom: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WUAAG2HH58WE4 custom: https://www.paypal.me/toxblh

View File

@ -72,9 +72,9 @@ class BasicView: NSCustomTouchBarItem, NSGestureRecognizerDelegate {
let prevPos = legacyPrevPositions[fingers]! let prevPos = legacyPrevPositions[fingers]!
if ((position - prevPos) > 15) || ((prevPos - position) > 15) { if ((position - prevPos) > 15) || ((prevPos - position) > 15) {
if position > prevPos { if position > prevPos {
HIDPostAuxKey(NX_KEYTYPE_BRIGHTNESS_UP) GenericKeyPress(keyCode: CGKeyCode(144)).send()
} else if position < prevPos { } else if position < prevPos {
HIDPostAuxKey(NX_KEYTYPE_BRIGHTNESS_DOWN) GenericKeyPress(keyCode: CGKeyCode(145)).send()
} }
legacyPrevPositions[fingers] = position legacyPrevPositions[fingers] = position
} }

View File

@ -17,9 +17,9 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>0.27</string> <string>0.26.1</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>434</string> <string>425</string>
<key>LSApplicationCategoryType</key> <key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string> <string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>

View File

@ -79,7 +79,7 @@ class SupportedTypesHolder {
return ( return (
item: .staticButton(title: ""), item: .staticButton(title: ""),
actions: [ actions: [
Action(trigger: .singleTap, value: .hidKey(keycode: NX_KEYTYPE_BRIGHTNESS_UP)) Action(trigger: .singleTap, value: .keyPress(keycode: 144))
], ],
legacyAction: .none, legacyAction: .none,
legacyLongAction: .none, legacyLongAction: .none,
@ -92,7 +92,7 @@ class SupportedTypesHolder {
return ( return (
item: .staticButton(title: ""), item: .staticButton(title: ""),
actions: [ actions: [
Action(trigger: .singleTap, value: .hidKey(keycode: NX_KEYTYPE_BRIGHTNESS_DOWN)) Action(trigger: .singleTap, value: .keyPress(keycode: 145))
], ],
legacyAction: .none, legacyAction: .none,
legacyLongAction: .none, legacyLongAction: .none,

View File

@ -18,7 +18,7 @@ My idea is to create a platform for creating plugins to customize the TouchBar.
<a href="https://t.me/joinchat/AmVYGg8vW38c13_3MxdE_g"><img height="20px" src="https://telegram.org/img/t_logo.png" /> Telegram</a> <a href="https://t.me/joinchat/AmVYGg8vW38c13_3MxdE_g"><img height="20px" src="https://telegram.org/img/t_logo.png" /> Telegram</a>
</p> </p>
<p align="center"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WUAAG2HH58WE4" title="Donate via Paypal"><img height="36px" src="Resources/support_paypal.svg" alt="PayPal donate button" /></a> <p align="center"><a href="https://www.paypal.me/toxblh/10" title="Donate via Paypal"><img height="36px" src="Resources/support_paypal.svg" alt="PayPal donate button" /></a>
<a href="https://www.buymeacoffee.com/toxblh" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" height="36px" ></a> <a href="https://www.buymeacoffee.com/toxblh" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" height="36px" ></a>
<a href="https://www.patreon.com/bePatron?u=9900748"><img height="36px" src="https://c5.patreon.com/external/logo/become_a_patron_button.png" srcset="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png 2x"></a> <a href="https://www.patreon.com/bePatron?u=9900748"><img height="36px" src="https://c5.patreon.com/external/logo/become_a_patron_button.png" srcset="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png 2x"></a>
<a href="https://www.producthunt.com/posts/my-touchbar-my-rules-mtmr"> <a href="https://www.producthunt.com/posts/my-touchbar-my-rules-mtmr">

View File

@ -63,8 +63,8 @@ echo "<?xml version=\"1.0\" standalone=\"yes\"?>
echo "" echo ""
echo "Homebrew https://github.com/Homebrew/homebrew-cask/edit/master/Casks/mtmr.rb" echo "Homebrew https://github.com/Homebrew/homebrew-cask/edit/master/Casks/mtmr.rb"
echo "" echo ""
echo " version \"${VERSION}\"" echo " version '${VERSION}'"
echo " sha256 \"${SHA256}\"" echo " sha256 '${SHA256}'"
echo "" echo ""
echo "Update MTMR v${VERSION}" echo "Update MTMR v${VERSION}"