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

Compare commits

..

5 Commits

Author SHA1 Message Date
3e82676008 upd build.sh 2020-11-20 02:24:31 +00:00
a2ad47c7ba build counter 2020-11-20 02:21:05 +00:00
bbe901a572 version 0.27 2020-11-20 01:42:50 +00:00
54eaa3fd9f Change brightness for 3 finger gesture. Close #370, #372 2020-11-19 21:32:35 +00:00
Matteo Piccina
6660bb2d8f
Fix brightness keys (#367) 2020-11-19 21:27:30 +00:00
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.me/toxblh custom: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WUAAG2HH58WE4

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 {
GenericKeyPress(keyCode: CGKeyCode(144)).send() HIDPostAuxKey(NX_KEYTYPE_BRIGHTNESS_UP)
} else if position < prevPos { } else if position < prevPos {
GenericKeyPress(keyCode: CGKeyCode(145)).send() HIDPostAuxKey(NX_KEYTYPE_BRIGHTNESS_DOWN)
} }
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.26.1</string> <string>0.27</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>425</string> <string>434</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: .keyPress(keycode: 144)) Action(trigger: .singleTap, value: .hidKey(keycode: NX_KEYTYPE_BRIGHTNESS_UP))
], ],
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: .keyPress(keycode: 145)) Action(trigger: .singleTap, value: .hidKey(keycode: NX_KEYTYPE_BRIGHTNESS_DOWN))
], ],
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.me/toxblh/10" 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.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>
<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}"