Skip to content

Instantly share code, notes, and snippets.

@hackjutsu
Last active December 7, 2022 01:01
Show Gist options
  • Save hackjutsu/1ad7e4968eb64d881ec9dedd6c0f400b to your computer and use it in GitHub Desktop.
Save hackjutsu/1ad7e4968eb64d881ec9dedd6c0f400b to your computer and use it in GitHub Desktop.
[Template for .leptonrc] This is a template for Lepton's configuration file. Please place it on your home directory. #lepton
{
"theme": "light",
"autoUpdate": false,
"snippet": {
"expanded": true,
"newSnippetPrivate": false,
"sorting": "updated_at",
"sortingReverse": true
},
"editor" : {
"tabSize": 4,
"validateFilename": true
},
"userPanel": {
"hideProfilePhoto": false
},
"logger": {
"level": "debug"
},
"proxy": {
"enable": false,
"address": "socks://localhost:1080"
},
"notifications": {
"success": true,
"failure": true
},
"shortcuts": {
"keyShortcutForSearch": "CMD+F",
"keyNewGist": "CommandOrControl+N",
"keyEditGist": "CommandOrControl+E",
"keySubmitGist": "CommandOrControl+S",
"keyImmersiveMode": "CommandOrControl+I",
"keyAboutPage": "CommandOrControl+,",
"keyDashboard": "CommandOrControl+D",
"keyEditorExit": "CommandOrControl+Escape",
"keySyncGists": "CommandOrControl+R"
},
"enterprise": {
"enable": false,
"host": "github_enterprise_host",
"token": "token_with_gist_enabled",
"avatarUrl": "optional_avatar_url"
}
}
@Deadmau8772
Copy link

FIELDS SUB-FIELDS OPTIONS (first option is default)
theme light | dark select light or dark theme
snippet expanded true | false expansion for snippets
newSnippetPrivate false | true privacy for new snippets
sorting updated_at | created_at | description snippets order
sortingReverse true | false reverse the order above
editor tabSize number the tab size (numer of spaces)
userPanel hideProfilePhoto false | true hide the profile photo
logger level info | debug logging level
proxy enable false | true enable proxy
address proxy address your proxy address
enterprise enable false | true enable GitHub Enterprise
host host address github enterprise host address
token token token with "gist" enabled
avatarUrl url to an avatar image (optional) url for an avartar

@nitinsatish
Copy link

Dark mode wasn't working for me on Ubuntu 18.04 snap installation. Moving .leptonrc from home to ~/snap/lepton/9/.leptonrc fixed it. Thanks @promisepreston

@macintacos
Copy link

Is it not possible to change the font being used in the app? Would be nice to change the "body" font and the "code" font separately.

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