Skip to content

support applescript toggle proxy/tun #313

Description

@alkene5

It would be great to support switching proxy modes and TUN mode via AppleScript.

Alternatively, extending the ClashMac CLI to provide these capabilities would also work.

This would make it much easier to automate mode switching and integrate ClashMac with tools such as Hammerspoon, Keyboard Maestro, Raycast, and other macOS automation workflows.

tell application "ClashX Meta" to toggleProxy
tell application "ClashX Meta" to TunMode
tell application "ClashX Meta" to proxyMode "global"

or

/usr/local/bin/clashmac toggle proxy
/usr/local/bin/clashmac toggle tun
/usr/local/bin/clashmac mode global

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions