Set GTK color scheme
parent
df2e405560
commit
c383a0583c
|
@ -2,37 +2,59 @@
|
|||
"window.autoDetectColorScheme": true,
|
||||
"workbench.preferredDarkColorTheme": "Solarized Dark",
|
||||
"workbench.preferredLightColorTheme": "Solarized Light",
|
||||
"workbench.colorTheme": "Solarized Dark",
|
||||
"workbench.startupEditor": "none",
|
||||
"editor.minimap.showSlider": "always",
|
||||
"editor.minimap.enabled": false,
|
||||
"editor.rulers": [
|
||||
80,
|
||||
],
|
||||
"files.autoSave": "afterDelay",
|
||||
"gitlens.statusBar.enabled": false,
|
||||
"vim.normalModeKeyBindings": [
|
||||
{
|
||||
"before": [
|
||||
"K"
|
||||
"K",
|
||||
],
|
||||
"commands": [
|
||||
"editor.action.showHover"
|
||||
"editor.action.showHover",
|
||||
],
|
||||
},
|
||||
{
|
||||
"before": [
|
||||
"<space>",
|
||||
"r",
|
||||
"f"
|
||||
"f",
|
||||
],
|
||||
"commands": [
|
||||
"fileutils.renameFile"
|
||||
"fileutils.renameFile",
|
||||
],
|
||||
},
|
||||
{
|
||||
"before": [
|
||||
"<space>",
|
||||
"f"
|
||||
"f",
|
||||
],
|
||||
"commands": [
|
||||
"editor.action.formatDocument"
|
||||
"editor.action.formatDocument",
|
||||
],
|
||||
},
|
||||
{
|
||||
"before": [
|
||||
"<space>",
|
||||
"b",
|
||||
],
|
||||
"commands": [
|
||||
"workbench.action.maximizeEditor",
|
||||
],
|
||||
},
|
||||
],
|
||||
"workbench.colorTheme": "Solarized Dark",
|
||||
}
|
||||
"redhat.telemetry.enabled": false,
|
||||
"git.autofetch": true,
|
||||
"gitlens.statusBar.enabled": false,
|
||||
"gitlab.aiAssistedCodeSuggestions.enabled": true,
|
||||
"docker.containers.label": "ContainerName",
|
||||
"docker.containers.description": [
|
||||
"Image",
|
||||
"Status",
|
||||
],
|
||||
}
|
3
.zshrc
3
.zshrc
|
@ -540,6 +540,7 @@ function theme {
|
|||
export LIGHT=true
|
||||
echo "export LIGHT=true" > ~/.zshrc-theme
|
||||
gnome_theme=Adwaita
|
||||
gnome_color_scheme=prefer-light
|
||||
macos_theme=false
|
||||
;;
|
||||
dark)
|
||||
|
@ -548,6 +549,7 @@ function theme {
|
|||
export LIGHT=false
|
||||
echo "export LIGHT=false" > ~/.zshrc-theme
|
||||
gnome_theme=Adwaita-dark
|
||||
gnome_color_scheme=prefer-dark
|
||||
macos_theme=true
|
||||
;;
|
||||
esac
|
||||
|
@ -565,6 +567,7 @@ function theme {
|
|||
if [[ -z "$SSH_CLIENT" ]]; then
|
||||
if [[ $PLATFORM == linux ]] && which gsettings 2>&1 >/dev/null; then
|
||||
gsettings set org.gnome.desktop.interface gtk-theme $gnome_theme
|
||||
gsettings set org.gnome.desktop.interface color-scheme $gnome_color_scheme
|
||||
fi
|
||||
if [[ $PLATFORM == macos ]]; then
|
||||
osascript -e "tell app \"System Events\" to tell appearance preferences to set dark mode to $macos_theme"
|
||||
|
|
Loading…
Reference in New Issue