mirror of
https://github.com/aljazceru/omakub.git
synced 2026-01-13 01:14:19 +01:00
Merge pull request #122 from MislavPukljak/chrome-theme-change
added chrome theme change
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
4
themes/chrome/catppuccin.sh
Normal file
4
themes/chrome/catppuccin.sh
Normal 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 ~
|
||||
4
themes/chrome/everforest.sh
Normal file
4
themes/chrome/everforest.sh
Normal 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
4
themes/chrome/gruvbox.sh
Normal 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 ~
|
||||
4
themes/chrome/kanagawa.sh
Normal file
4
themes/chrome/kanagawa.sh
Normal 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
4
themes/chrome/nord.sh
Normal 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 ~
|
||||
4
themes/chrome/rose-pine.sh
Normal file
4
themes/chrome/rose-pine.sh
Normal 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 ~
|
||||
4
themes/chrome/tokyo-night.sh
Normal file
4
themes/chrome/tokyo-night.sh
Normal 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 ~
|
||||
Reference in New Issue
Block a user