The global config.json
The configuration is done in the config.json file in the directory ~/.local/share/looksyk. This path can be changed
with the environment variable LOOKSYK_CONFIG_PATH.
The default graph location is in ~/graph (or the configured location in the ~/.local/share/looksyk/config.json).
Graph specific configuration
Each graph can have its own configuration files in the config folder of the graph. All configuration options can be configured in the settings tab in the sidebar of the application.
The following options can be configured in the config/config.json file of the graph:
title: The title of the graph, displayed in sidebar and window titlefavourites: An array of page IDs, which are displayed in the favourites section in the sidebardesign: The design of the application. See design documentation for more information.update_check: Boolean, that enables / disables an automatic update-check on application startup.indentation_shortcut: Boolean, that enables / disables the keyboard-shortcut to increase and decrease the indentation of the current block.journal-configuration: Configuration for the journal feature, including:journal_title_format: The format of the journal title. It supports the valuesworldfor the formatDD.MM.YYYY,americanfor the formatMM/DD/YYYYandisofor the formatYYYY-MM-DD.show_weekday_in_title: Value to show the weekday in the journal title. Acceptsnone,as_prefixandas_suffix.
CLI-Arguments
The command looksyk accepts the following command line arguments:
--graph-locationto specify the location of the graph (default:~/graph)--portto specify the port of the backend (default:11000) (only for actix-web deployments)
(Backend) Environment Arguments
General
HTTPS_PROXYto specify a https proxy for the updater. This proxy is used for the update-check aswell as the download of the release binary. If the environment variable contains a illigal argument (e.g. no valid url), the application wont start.
Sync
If no system keychain is available, an encrypted file can be used to store the synchronization data. To enable this, both environment variables must be correctly configured:
LOOKSYK_KEYRING_LOCATION: The location where the encrypted file with username + PAT is stored aswell as the NONCE (needed for encryption, rotates on every credential-change)LOOKSYK_KEYRING_KEY: The encryption passphrase. Needs to be a random 32 character key.