Skip to content

Instantly share code, notes, and snippets.

@choefele
choefele / gist:c4a31862d91cba9ac364
Created May 26, 2015 09:56
NSLogger – logMessage()
private class func logMessage(message: String) {
let appID = NSBundle.mainBundle().bundleIdentifier
LogMessage_va(appID, 0, message, getVaList([]))
}
source 'https://rubygems.org'
gem 'cocoapods', :git => 'https://github.com/CocoaPods/CocoaPods.git'
@choefele
choefele / description.txt
Created January 4, 2021 19:13
Map Logitech Wireless Presenter Keys to Work in Zoom and Teams (macOS)
Logitech wireless presenters, such as the R700, function as simple keyboards. However, the standard key mapping only works with PowerPoint. When in a video conference, I prefer to have the keys mapped to volume up/down, mute on/off, and video on/off. That way, I can control these features even when further away from the keyboard.
Here is how to achieve this:
- Download and install Karabiner https://pqrs.org/osx/karabiner/ (Karabiner requires Input Monitoring permission)
- Download logitech.json from this gist and move to ~/.config/karabiner/assets/complex_modifications
- Open Karabiner > Preferences... > Complex modifications
- Click Add rule
- Enable "Logitech + Zoom: Volume, Mute, Stop Video" and/or "Logitech + Teams: Volume, Mute, Stop Video" (keys get mapped only if these specific apps are in the foreground and only for the Logitech wireless presenter)
Note: you might need to check if the vendor_id and product_id are correct for your device (Open Karabiner > Preferences... > Devices)