alfred-scrcpy
v1.3.0
Published
Alfred workflow to Launch scrcpy
Maintainers
Readme
alfred scrcpy
Usage
- In Alfred, type
scrcpythen enter - Select a device which you want to display with scrcpy
Requirements
- Alfred 4 with the Powerpack upgrade
- Node
- Ruby
- Android Platform Tools (
adb) - scrcpy
- Installed at
/opt/homebrew/bin/scrcpy
- Installed at
adb path resolution
adb is resolved automatically in this order:
- The
adb pathvalue in the workflow's Configuration (Alfred Preferences → Workflows → Scrcpy → Configure Workflow) ANDROID_HOME/ANDROID_SDK_ROOTenvironment variables- Common locations:
$HOME/Library/Android/sdk/platform-tools/adb,/opt/homebrew/bin/adb,/usr/local/bin/adb adbonPATH
If your SDK lives somewhere else (e.g. managed by mise, asdf, or a custom path), set the adb path field in the workflow Configuration to the full path of your adb binary. GUI apps such as Alfred do not load your shell profile, so a custom PATH / ANDROID_HOME from .zshrc / .bash_profile is not visible to the workflow.
Install
$ npm install --global alfred-scrcpyLicense
Copyright 2022 Tomoki Yamashita
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
