Merge pull request #122 from MislavPukljak/chrome-theme-change

added chrome theme change
This commit is contained in:
David Heinemeier Hansson
2024-06-13 20:56:06 +02:00
committed by GitHub
8 changed files with 35 additions and 0 deletions

View File

@@ -12,6 +12,13 @@ if [ -n "$THEME" ] && [ "$THEME" != "<<-back" ]; then
cp $OMAKUB_PATH/configs/neovim/transparency.lua ~/.config/nvim/plugin/after/transparency.lua
fi
# Chrome theme update
if gum confirm "Do you want to update Chrome theme? If yes, Chrome will be restarted!"; then
pkill -9 chrome
source $OMAKUB_PATH/themes/chrome/$THEME.sh
google-chrome > /dev/null 2>&1 &
fi
cp $OMAKUB_PATH/themes/neovim/$THEME.lua ~/.config/nvim/lua/plugins/theme.lua
sed -i "s/theme \".*\"/theme \"$THEME\"/g" ~/.config/zellij/config.kdl

View File

@@ -0,0 +1,4 @@
cd ~/.config/google-chrome/Default
jq '.browser.theme.color_scheme = 2 | .browser.theme.color_variant = 1 | .browser.theme.user_color = 1579044' Preferences >tmp.json && mv tmp.json Preferences
jq '.ntp += {"custom_background_dict":{"background_url": "https://github.com/basecamp/omakub/blob/master/backgrounds/catppuccintotoro.png?raw=true"}}' Preferences >tmp.json && mv tmp.json Preferences
cd ~

View File

@@ -0,0 +1,4 @@
cd ~/.config/google-chrome/Default
jq '.browser.theme.color_scheme = 2 | .browser.theme.color_variant = 2 | .browser.theme.user_color = -7829368' Preferences >tmp.json && mv tmp.json Preferences
jq '.ntp += {"custom_background_dict":{"background_url": "https://github.com/basecamp/omakub/blob/master/backgrounds/fog_forest_2.jpg?raw=true"}}' Preferences >tmp.json && mv tmp.json Preferences
cd ~

4
themes/chrome/gruvbox.sh Normal file
View File

@@ -0,0 +1,4 @@
cd ~/.config/google-chrome/Default
jq '.browser.theme.color_scheme = 2 | .browser.theme.color_variant = 2 | .browser.theme.user_color = -8847616' Preferences >tmp.json && mv tmp.json Preferences
jq '.ntp += {"custom_background_dict":{"background_url": "https://github.com/basecamp/omakub/blob/master/backgrounds/ferns-green.jpg?raw=true"}}' Preferences >tmp.json && mv tmp.json Preferences
cd ~

View File

@@ -0,0 +1,4 @@
cd ~/.config/google-chrome/Default
jq '.browser.theme.color_scheme = 1 | .browser.theme.color_variant = 1 | .browser.theme.user_color = 6632704' Preferences >tmp.json && mv tmp.json Preferences
jq '.ntp += {"custom_background_dict":{"background_url": "https://github.com/basecamp/omakub/blob/master/backgrounds/kanagawa.jpg?raw=true"}}' Preferences >tmp.json && mv tmp.json Preferences
cd ~

4
themes/chrome/nord.sh Normal file
View File

@@ -0,0 +1,4 @@
cd ~/.config/google-chrome/Default
jq '.browser.theme.color_scheme = 2 | .browser.theme.color_variant = 2 | .browser.theme.user_color = 5002858' Preferences >tmp.json && mv tmp.json Preferences
jq '.ntp += {"custom_background_dict":{"background_url": "https://github.com/basecamp/omakub/blob/master/backgrounds/nord_scenary.png?raw=true"}}' Preferences >tmp.json && mv tmp.json Preferences
cd ~

View File

@@ -0,0 +1,4 @@
cd ~/.config/google-chrome/Default
jq '.browser.theme.color_scheme = 1 | .browser.theme.color_variant = 1 | .browser.theme.user_color = -65281' Preferences >tmp.json && mv tmp.json Preferences
jq '.ntp += {"custom_background_dict":{"background_url": "https://github.com/basecamp/omakub/blob/master/backgrounds/simple-pastel-by-triarts-from-freepik.jpg?raw=true"}}' Preferences >tmp.json && mv tmp.json Preferences
cd ~

View File

@@ -0,0 +1,4 @@
cd ~/.config/google-chrome/Default
jq '.browser.theme.color_scheme = 2 | .browser.theme.color_variant = 1 | .browser.theme.user_color = 3094106' Preferences >tmp.json && mv tmp.json Preferences
jq '.ntp += {"custom_background_dict":{"background_url": "https://github.com/basecamp/omakub/blob/master/backgrounds/80s-retro-tropical-sunset-by-freepik.jpg?raw=true"}}' Preferences >tmp.json && mv tmp.json Preferences
cd ~