GithubHelp home page GithubHelp logo

jacksonjang / discordx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asadazam/discordx

0.0 0.0 0.0 1.35 MB

Xcode Discord Integration works with Xcode 13 and has all the latest icons.

License: MIT License

Swift 100.00%

discordx's Introduction

DiscordX

GitHub release (latest by date)

GitHub GitHub GitHub GitHub GitHub GitHub All Releases

New Features

  1. Added a simple Status Bar Menu to start, stop or close the App.

TODOs

  1. Keep a log file for time spent on every file

DiscordX adds support for Xcode on Discord, AKA Discord Rich Presence.

DiscordX displays the current file you are working on and the current workspace in use. It uses the same icons which exist in Xcode 12.0.1 (12A7300)

DIscordX adds support for the current application in use too. Other applications do the exact same thing, but none of them I used supported applications or such a wide variety of file types. Also, none of them are updated for Xcode 13.

The following file type extensions are supported:

  • .swift
  • .playground
  • .storyboard
  • .xcodeproj
  • .h
  • .m
  • .cpp
  • .c
  • .sdef
  • .plist
  • .md
  • .appex
  • .rcproject
  • .rtf
  • .rtfd
  • .pch
  • .mm
  • .xcassets
  • .iig
  • .metal
  • .xib
  • .arobject
  • .entitlements

The following applications are supported:

  • Simulator
  • Instruments
  • Accessibility Inspector
  • FileMerge
  • Create ML
  • RealityComposer

Dependencies

If you are modifying/ tweaking the application, make sure you change the Team under Signing & Capabilities.

DiscordX uses PKBeam's Fork of Azoy's SwordRPC.

System Requirements

  • macOS Big Sur (11) (Minimum)
  • Xcode installed

Usage

  1. Download the project, and open it on Xcode.
  2. Go to Signing & Capabilities, choose Team and Select Sign to Run Locally in Signing Certificate.
  3. Build and Run the App.
  4. (Optional) Go to Products under the Navigator, right-click on DiscordX.app, and click on Show in Finder. Copy/Cut - Paste in the Applications folder, and it should be easier to launch next time.

After running it, it will ask for two permissions; one is for controlling Xcode, and the other is for System Events. As the app uses Apple script to perform any operation, it would need access to whatever the script will run on.

Configurable

  • You can set the refresh interval of rich presence (by default, it refreshes every 5 seconds) [Note: When strict mode is enabled, it will refresh immediately when switching to and from Xcode]
  • Strict Mode (Timer will only keep the time you were active on Xcode)
  • Flaunt Mode (Timer will not stop on Sleep and Wakeup of MacOS)

List of Apple Scripts run:

tell application "Xcode"
  return name of windows
end tell
tell application "Xcode"
  return file of documents
end tell
tell application "Xcode"
  return name of documents
end tell
tell application "Xcode"
  return active workspace document
end tell
tell application "System Events"
  get the name of every application process whose frontmost is true
end tell
tell application (path to frontmost application as Unicode text)
  if name is "Xcode" then
    get version
  end if
end tell

You can verify what permissions DiscordX uses by opening System Preferences and looking in Security & Privacy under Privacy, then Automation. That's it, you're done - DiscordX will now automatically monitor Xcode.

If you like, you can set DiscordX to automatically open on login.

Note

DiscordX is a fork of RPFX. I didn't contribute to the original as I didn't like the name RPFX.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.