Skip to main content

lumide_discord 0.2.0 copy "lumide_discord: ^0.2.0" to clipboard
lumide_discord: ^0.2.0 copied to clipboard

Lumide IDE plugin that shows what you're working on in your Discord status: the file, project, language and time, with privacy settings.

Discord Presence for Lumide #

Shows what you're working on in Lumide in your Discord status, like the Rich Presence extensions for VS Code:

Playing Lumide
Editing main.dart
In my_app
🕒 01:23:45 elapsed

The file's language (Dart, Flutter, Kotlin, …) is the large image, with the Lumide logo in the small circle. Under it, Get Lumide and Join Lumide Discord buttons let others find Lumide; you can hide them or add your own.

  • Shows the open file, the project, the language and the time since Lumide was opened. Each of these can be hidden, or all names at once with privacy mode, or only in some projects with excluded projects.
  • A Discord icon in the status bar opens a menu to change all this in one click.
  • Says Editing once you type in a file and Viewing before that.
  • Shows Running, Debugging or Testing while you run your app from Run and Debug.
  • Shows Flutter instead of Dart in Flutter projects.
  • Goes Idle, or hides your status, after a few minutes without activity, but never while your app is running.
  • Waits for Discord when it isn't running and reconnects when Discord restarts.
  • Stays within Discord's update limit.

Setup #

  1. In Lumide, open Plugins and search for Discord Presence, or click Load Local Plugin and choose this folder.
  2. Keep the Discord desktop app open. Your status appears within a few seconds.

In Discord, User Settings → Activity Privacy → Share your detected activities with others must be on for others to see it.

Statuses #

You're Discord shows Large image
Typing in a file Editing main.dart The language
Reading a file Viewing main.dart The language
Running or testing your app Running main.dart, Testing main.dart The language
Debugging your app Debugging main.dart A bug
Away for a few minutes Idle A moon
Without a file open No file open The Lumide logo

The second line is the project ("In my_app") and the elapsed time follows.

Privacy mode #

Turn on Privacy Mode in the status bar menu or the settings, or run Discord Presence: Turn Privacy Mode On/Off, to hide file and project names in every project, for example while screen sharing. Discord then shows "Editing a Dart file" without the project.

Excluded projects #

To keep one project's names off Discord, such as your company's, open it and pick Hide "project" in the status bar menu. In that project Discord shows "Editing a Dart file" without the project, like privacy mode; everywhere else nothing changes. Pick Show "project" to undo it.

To manage the list, pick Excluded Projects… in the menu:

  • Add Folder… opens the folder picker, so you can exclude any project without opening it;
  • Add Pattern… takes a glob or a project name;
  • click an entry to remove it.

The same list is the Excluded Projects setting, with entries separated by ;. Entries can be:

Entry Matches
D:\work\company_app That folder and everything in it
D:/work/** Globs, matched against the project folder and the open file
**/*.secret.dart Single files anywhere
company_app Any project (workspace folder) with that name

Matching ignores case, and \ and / are the same.

Included Projects (also in the menu) works the other way round: when set, only those projects show their names, and all others count as excluded. Privacy mode still hides names in included projects too. Turn on Hide Excluded Projects Completely to remove your status in excluded projects instead of showing it without names.

Buttons #

Two buttons under your status open links for whoever views your profile:

To link your own page instead of Lumide's Discord, for example your project on GitHub, fill in Custom Button Text and Custom Button Link (starting with https://). Turn off Show Buttons to hide both.

Discord shows the buttons to others only: on your own profile, clicking them does nothing.

Settings #

Setting Default
Show on Discord on Turns the plugin on or off.
Privacy Mode off Hides file and project names.
Excluded Projects (empty) Projects whose names stay off Discord. See Excluded projects.
Included Projects (empty) When set, only these projects show their names.
Hide Excluded Projects Completely off Removes your status in excluded projects.
Show Buttons on The buttons under your status.
Custom Button Text (empty) Your own button in place of "Join Lumide Discord", up to 32 characters.
Custom Button Link (empty) The address it opens, starting with https://.
Discord Application ID (empty) Empty shows "Playing Lumide". See Your own Discord application.
Show File Name on Off shows only the language: "Editing a Dart file".
Show Project Name on The workspace folder's name.
Show Language on The language image and name.
Show Elapsed Time on Time since Lumide was opened. Off keeps the timer at 0:00: Discord always shows one, so it can't be removed completely.
Idle After (Minutes) 5 Shows "Idle" after this long without typing, moving the cursor or switching files. 0 never goes idle.
Hide When Idle off Removes your status while idle instead of showing "Idle".

Status bar menu #

Hover the Discord icon in the status bar to see whether your status is shown, and click it for a menu with:

  • the connection state;
  • Turn On / Turn Off;
  • Privacy Mode;
  • Hide "project" or Show "project", for the project you're in;
  • Excluded Projects… and Included Projects…, to add folders with the folder picker, add patterns, or remove entries;
  • Show File Name, Show Project Name, Show Language, Show Elapsed Time and Show Buttons;
  • Reconnect, while Discord isn't connected.

Commands #

Command
Discord Presence: Show Menu The status bar menu.
Discord Presence: Turn On/Off Turns the plugin on or off.
Discord Presence: Turn Privacy Mode On/Off See Privacy mode.
Discord Presence: Reconnect Connects now instead of waiting for the next retry (every 20 s).

Your own Discord application #

By default your status belongs to the plugin's Discord application: "Playing Lumide", with its images. To show another name or your own images:

  1. Open the Discord Developer Portal, click New Application and give it the name to show after "Playing".
  2. Copy its Application ID into Settings → Plugins → Discord Presence → Discord Application ID.
  3. Under Rich Presence → Art Assets, upload images (at least 512 × 512 px) named after these keys:
Key Shown for
lumide Small circle; large image without a file
idle, debugging Idle; debugging
dart, flutter Dart; Dart in a Flutter project
javascript, typescript, react, vue, svelte .js, .ts, .jsx/.tsx, .vue, .svelte
python, java, kotlin, gradle, swift, go, rust .py, .java, .kt/.kts, .gradle, .swift, .go, .rs
c, cpp, csharp, php, ruby, lua .c/.h, .cpp/.cc/.cxx/.hpp, .cs, .php, .rb, .lua
html, css, sass .html, .css, .scss/.sass
json, yaml, toml, xml, markdown, sql Data and docs
shell, powershell, docker, makefile .sh/.bash/.zsh, .ps1, Dockerfile, Makefile
file Any other file

Clear the field to go back to the plugin's application.

Privacy and permissions #

Lumide's permission system covers file, network and shell access, and plugin.yaml declares the only one this plugin uses: reading pubspec.yaml files in your workspace, to tell Flutter projects from Dart ones.

The connection to Discord isn't covered by Lumide's permissions. The plugin talks to the Discord app on your computer over Discord's local connection (a named pipe on Windows, a Unix socket on macOS and Linux), which is neither file, network nor shell access, so Lumide doesn't ask about it and can't limit it. You can read exactly what is sent in lib/src/activity.dart and lib/src/discord_link.dart:

  • the "Editing …" / "Viewing …" / "Running …" / "Debugging …" / "Idle" line, with the file's name only (never its folder or contents);
  • "In" and the workspace folder's name;
  • the language's name and image name;
  • when Lumide was opened.

The settings above turn each of these off, and privacy mode turns off both names at once. The plugin itself doesn't connect to the internet; Discord shares your status with others the way it shares any activity, under your Activity Privacy settings.

Troubleshooting #

  • The icon's tooltip says "Discord isn't running": the Discord desktop app isn't running, or isn't reachable. Discord in a browser doesn't work. On Linux, Flatpak and Snap versions of Discord can hide the connection from other apps.
  • Nothing shows in Discord although the tooltip says your activity is shown: check Activity Privacy → Share your detected activities with others.
  • No images with your own application: upload them under Rich Presence → Art Assets with the names in Your own Discord application, then wait a few minutes.

Credits #

The status bar icon is Discord's logo from Simple Icons (CC0). The language, idle and debugging images come from VSCord (MIT License, © iCrawl). Dart, Flutter and the other language logos are trademarks of their owners; this plugin isn't affiliated with or endorsed by them.

License #

GPL-3.0, because the plugin uses dart_discord_presence, which is GPL-3.0. See LICENSE.

1
likes
160
points
106
downloads

Documentation

API reference

Publisher

verified publisherkiritex.com

Weekly Downloads

Lumide IDE plugin that shows what you're working on in your Discord status: the file, project, language and time, with privacy settings.

Repository (GitHub)
View/report issues

Topics

#lumide-plugin #lumide-utils #discord

License

GPL-3.0 (license)

Dependencies

dart_discord_presence, glob, lumide_api, path

More

Packages that depend on lumide_discord