Skip to content

Instantly share code, notes, and snippets.

@promisepreston
Created December 17, 2019 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save promisepreston/534689a274d2d5299c6d199cd04bee8c to your computer and use it in GitHub Desktop.
Save promisepreston/534689a274d2d5299c6d199cd04bee8c to your computer and use it in GitHub Desktop.

How to Change Lepton's Theme

Changing Lepton to Dark Theme and TabSize 2 for Linux Snap Package

N/B: Do not use administrative rights (sudo) for any command that you would run

  1. Create a file named .leptonrc on your Desktop

  2. Put the code below into it

{
    "theme": "dark",
    "snippet": {
        "expanded": true,
        "newSnippetPrivate": false,
        "sorting": "updated_at", 
        "sortingReverse": true
    },
    "editor" : {
        "tabSize": 2
    },
    "userPanel": {
        "hideProfilePhoto": false
    },
    "logger": {
        "level": "debug"
    },
    "proxy": {
        "enable": false,
        "address": "socks://localhost:1080"
    },
    "enterprise": {
        "enable": false,
        "host": "github_enterprise_host",
        "token": "token_with_gist_enabled",
        "avatarUrl": "optional_avatar_url"
    }
}
  1. Save and exit your text editor.

  2. Copy the .leptonrc file to ~/snap/lepton/9 directory by running the command below, which will create a symbolic link in the ~/snap/lepton/current directory.

    mv .leptonrc ~/snap/lepton/9/.leptonrc
  1. Restart your Lepton application.

References

  1. Template for .leptonrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment