Skip to content

Commit

Permalink
137 automatically use dark mode if enabled when initializing rstudio …
Browse files Browse the repository at this point in the history
…vscode and jupyter services (#148)

* fix vscode settings for dark theme

* Update onyxia-init.sh

* test environment
  • Loading branch information
ihiverlet authored Oct 19, 2023
1 parent 80a74cc commit 46ff3af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/onyxia-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ if command -v R; then
fi
if [[ "$DARK_MODE" == "true" ]]; then
if command -v jupyter lab; then
if command -v jupyter-lab; then
echo "{\"@jupyterlab/apputils-extension:themes\": {\"theme\": \"JupyterLab Dark\"}}" > ${MAMBA_DIR}/share/jupyter/lab/settings/overrides.json;
fi
if command -v vscode; then
fi
if command -v code-server; then
jq '. + {"workbench.colorTheme": "Default Dark Modern" }' ${HOME}/.local/share/code-server/User/settings.json > ${HOME}/tmp.settings.json && mv ${HOME}/tmp.settings.json ${HOME}/.local/share/code-server/User/settings.json
fi
if command -v R; then
if command -v rstudio-server; then
touch ${R_HOME}/etc/Rprofile.site
echo "if (Sys.getenv('DARK_MODE')=='TRUE'){
setHook('rstudio.sessionInit', function(newSession) {
Expand Down

0 comments on commit 46ff3af

Please sign in to comment.