Skip to content

How to define default theme in system-wide configuration files ? #1314

Answered by tstack
vincesdf asked this question in Q&A
Discussion options

You must be logged in to vote

You can create a file with your desired config, like:

{
  "ui": {
    "theme": "custom_theme"
  }
}

Use lnav -h to check where format files are read from on your system (look under the "Paths" section). For example, if /etc/lnav is listed, you can put the above contents in a file named /etc/lnav/formats/local/config.theme.json. lnav should then pick it up. Use lnav -d /tmp/lnav.dbg to turn on debug logging and check that file if you are having issues.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@piotr-dobrogost
Comment options

@vincesdf
Comment options

@tstack
Comment options

@piotr-dobrogost
Comment options

Answer selected by vincesdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants