Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1.85 KB

README.md

File metadata and controls

52 lines (41 loc) · 1.85 KB

SyncClipboard-Go

剪切板同步小助手-PC端

说明

这是和剪切板同步小助手-安卓端配套的工具,用于实现在全PC平台上的剪切板同步

因为是Go写的,所以理论上可以支持所有架构,自行编译所需架构。Release里是Mac M1的编译成品

运行时需要同目录下有config.toml文件,具体参数解释可以看安卓端仓库的说明

奇技淫巧

  1. Mac端的SyncClipboard-Go中的将接收的剪切板内容以系统通知的方式展示出来的功能,与安卓手机上 验证码提取器 插件联动,即可实现不需碰手机直接在Mac上粘贴验证码的效果

Mac下配置开机启动

touch ~/Library/LaunchAgents/SyncClipboard.plist
vim ~/Library/LaunchAgents/SyncClipboard.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>KeepAlive</key>
        <true/>
        <key>RunAtLoad</key>
        <true/>
        <key>Label</key>
        <string>SyncClipboard</string>
        <key>ProgramArguments</key>
        <array>
            <string>/Users/dawnnnnnn/Downloads/Tools/SyncClipboard/SyncClipboard-darwin-arm64</string>
        </array>
        <key>WorkingDirectory</key>
        <string>/Users/dawnnnnnn/Downloads/Tools/SyncClipboard</string>
        <key>StandardOutPath</key>
        <string>/Users/dawnnnnnn/Downloads/Tools/SyncClipboard/run-out.log</string>
        <key>StandardErrorPath</key>
        <string>/Users/dawnnnnnn/Downloads/Tools/SyncClipboard/run-err.log</string>
    </dict>
</plist>
launchctl load  ~/Library/LaunchAgents/SyncClipboard.plist
launchctl start ~/Library/LaunchAgents/SyncClipboard.plist