Skip to content

Discord presence for lite-xl. Linux-only; totally FOSS.

License

Notifications You must be signed in to change notification settings

vincens2005/lite-xl-discord2

Repository files navigation

Discord presence for lite-xl

This only works on Linux; if you're on something else, use litepresence.

This plugin displays what file you're editing and your directory in your Discord rich presence.

screenshot

You can customize the RPC messages by setting config.discord_rpc. The default config looks like this:

local config.discord_rpc = {
    application_id = "749282810971291659",
    editing_details = "Editing %f",
    idle_details = "Idling",
    lower_editing_details = "in %w",
    lower_idle_details = "Idle",
    elapsed_time = true,
    idle_timeout = 30,
    autoconnect = true,
    reconnect = 5
}

a simple discord-rpc implementation in C and lua

main.c, include/discord.h, and discord.lua comprise a basic implementation of discord-rpc from scratch. It's not feature-complete, but it is extensible.

If you want to use it for a different project, all you have to do is make small changes to main.c to use the standard lua API instead of lite-xl's header, and link lua in compiling it.

About

Discord presence for lite-xl. Linux-only; totally FOSS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published