Skip to content

Dawnnnnnn/SyncClipboard-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

剪切板同步小助手-PC端

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages