Rearrange themes

This commit is contained in:
David Heinemeier Hansson
2024-07-03 14:11:46 +02:00
parent 431cc8b846
commit 1965e0b609
66 changed files with 98 additions and 59 deletions

View File

Before

Width:  |  Height:  |  Size: 645 KiB

After

Width:  |  Height:  |  Size: 645 KiB

View File

@@ -0,0 +1,5 @@
CHROME_COLOR="1579044"
CHROME_COLOR_SCHEME=2
CHROME_COLOR_VARIANT=1
CHROME_BACKGROUND="catppuccin/background.png"
source $OMAKUB_PATH/themes/set-chrome-theme.sh

View File

@@ -0,0 +1,3 @@
OMAKUB_THEME_COLOR="magenta"
OMAKUB_THEME_BACKGROUND="catppuccin/background.png"
source $OMAKUB_PATH/themes/set-gnome-theme.sh

View File

@@ -0,0 +1,3 @@
VSC_THEME="Catppuccin Macchiato"
VSC_EXTENSION="Catppuccin.catppuccin-vsc"
source $OMAKUB_PATH/themes/set-vscode-theme.sh

View File

@@ -1,5 +0,0 @@
cd ~/.config/google-chrome/Default
jq '.extensions.theme += {"id": "user_color_theme_id", "system_theme": 0}' Preferences >tmp.json && mv tmp.json Preferences
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

@@ -1,5 +0,0 @@
cd ~/.config/google-chrome/Default
jq '.extensions.theme += {"id": "user_color_theme_id", "system_theme": 0}' Preferences >tmp.json && mv tmp.json Preferences
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 ~

View File

@@ -1,5 +0,0 @@
cd ~/.config/google-chrome/Default
jq '.extensions.theme += {"id": "user_color_theme_id", "system_theme": 0}' Preferences >tmp.json && mv tmp.json Preferences
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

@@ -1,5 +0,0 @@
cd ~/.config/google-chrome/Default
jq '.extensions.theme += {"id": "user_color_theme_id", "system_theme": 0}' Preferences >tmp.json && mv tmp.json Preferences
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 ~

View File

@@ -1,5 +0,0 @@
cd ~/.config/google-chrome/Default
jq '.extensions.theme += {"id": "user_color_theme_id", "system_theme": 0}' Preferences >tmp.json && mv tmp.json Preferences
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

@@ -1,5 +0,0 @@
cd ~/.config/google-chrome/Default
jq '.extensions.theme += {"id": "user_color_theme_id", "system_theme": 0}' Preferences >tmp.json && mv tmp.json Preferences
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

@@ -1,5 +0,0 @@
cd ~/.config/google-chrome/Default
jq '.extensions.theme += {"id": "user_color_theme_id", "system_theme": 0}' Preferences >tmp.json && mv tmp.json Preferences
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 ~

View File

Before

Width:  |  Height:  |  Size: 882 KiB

After

Width:  |  Height:  |  Size: 882 KiB

View File

@@ -0,0 +1,5 @@
CHROME_COLOR="-7829368"
CHROME_COLOR_SCHEME=2
CHROME_COLOR_VARIANT=2
CHROME_BACKGROUND="everforest/background.jpg"
source $OMAKUB_PATH/themes/set-chrome-theme.sh

View File

@@ -0,0 +1,3 @@
OMAKUB_THEME_COLOR="bark"
OMAKUB_THEME_BACKGROUND="everforest/background.jpg"
source $OMAKUB_PATH/themes/set-gnome-theme.sh

View File

@@ -0,0 +1,3 @@
VSC_THEME="Everforest Dark"
VSC_EXTENSION="sainnhe.everforest"
source $OMAKUB_PATH/themes/set-vscode-theme.sh

View File

@@ -1,3 +0,0 @@
OMAKUB_THEME_COLOR="magenta"
OMAKUB_THEME_BACKGROUND="catppuccintotoro.png"
source $OMAKUB_PATH/themes/gnome/_set-gnome-theme.sh

View File

@@ -1,3 +0,0 @@
OMAKUB_THEME_COLOR="bark"
OMAKUB_THEME_BACKGROUND="fog_forest_2.jpg"
source $OMAKUB_PATH/themes/gnome/_set-gnome-theme.sh

View File

@@ -1,3 +0,0 @@
OMAKUB_THEME_COLOR="sage"
OMAKUB_THEME_BACKGROUND="ferns-green.jpg"
source $OMAKUB_PATH/themes/gnome/_set-gnome-theme.sh

View File

@@ -1,3 +0,0 @@
OMAKUB_THEME_COLOR="purple"
OMAKUB_THEME_BACKGROUND="kanagawa.jpg"
source $OMAKUB_PATH/themes/gnome/_set-gnome-theme.sh

View File

@@ -1,3 +0,0 @@
OMAKUB_THEME_COLOR="blue"
OMAKUB_THEME_BACKGROUND="nord_scenary.png"
source $OMAKUB_PATH/themes/gnome/_set-gnome-theme.sh

View File

@@ -1,4 +0,0 @@
OMAKUB_THEME_COLOR="red"
OMAKUB_THEME_BACKGROUND="simple-pastel-by-triarts-from-freepik.jpg"
source $OMAKUB_PATH/themes/gnome/_set-gnome-theme.sh
gsettings set org.gnome.desktop.interface color-scheme 'prefer-light'

View File

@@ -1,3 +0,0 @@
OMAKUB_THEME_COLOR="purple"
OMAKUB_THEME_BACKGROUND="80s-retro-tropical-sunset-by-freepik.jpg"
source $OMAKUB_PATH/themes/gnome/_set-gnome-theme.sh

View File

Before

Width:  |  Height:  |  Size: 925 KiB

After

Width:  |  Height:  |  Size: 925 KiB

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

@@ -0,0 +1,5 @@
CHROME_COLOR="-8847616"
CHROME_COLOR_SCHEME=2
CHROME_COLOR_VARIANT=2
CHROME_BACKGROUND="gruvbox/background.jpg"
source $OMAKUB_PATH/themes/set-chrome-theme.sh

3
themes/gruvbox/gnome.sh Normal file
View File

@@ -0,0 +1,3 @@
OMAKUB_THEME_COLOR="sage"
OMAKUB_THEME_BACKGROUND="gruvbox/background.jpg"
source $OMAKUB_PATH/themes/set-gnome-theme.sh

3
themes/gruvbox/vscode.sh Normal file
View File

@@ -0,0 +1,3 @@
VSC_THEME="Gruvbox Dark Medium"
VSC_EXTENSION="jdinhlife.gruvbox"
source $OMAKUB_PATH/themes/set-vscode-theme.sh

View File

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@@ -0,0 +1,5 @@
CHROME_COLOR="6632704"
CHROME_COLOR_SCHEME=1
CHROME_COLOR_VARIANT=1
CHROME_BACKGROUND="kanagawa/background.jpg"
source $OMAKUB_PATH/themes/set-chrome-theme.sh

3
themes/kanagawa/gnome.sh Normal file
View File

@@ -0,0 +1,3 @@
OMAKUB_THEME_COLOR="purple"
OMAKUB_THEME_BACKGROUND="kanagawa/background.jpg"
source $OMAKUB_PATH/themes/set-gnome-theme.sh

View File

@@ -0,0 +1,3 @@
VSC_THEME="Kanagawa"
VSC_EXTENSION="qufiwefefwoyn.kanagawa"
source $OMAKUB_PATH/themes/set-vscode-theme.sh

View File

Before

Width:  |  Height:  |  Size: 800 KiB

After

Width:  |  Height:  |  Size: 800 KiB

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

@@ -0,0 +1,5 @@
CHROME_COLOR="5002858"
CHROME_COLOR_SCHEME=2
CHROME_COLOR_VARIANT=2
CHROME_BACKGROUND="nord/background.png"
source $OMAKUB_PATH/themes/set-chrome-theme.sh

3
themes/nord/gnome.sh Normal file
View File

@@ -0,0 +1,3 @@
OMAKUB_THEME_COLOR="blue"
OMAKUB_THEME_BACKGROUND="nord/background.png"
source $OMAKUB_PATH/themes/set-gnome-theme.sh

3
themes/nord/vscode.sh Normal file
View File

@@ -0,0 +1,3 @@
VSC_THEME="Nord"
VSC_EXTENSION="arcticicestudio.nord-visual-studio-code"
source $OMAKUB_PATH/themes/set-vscode-theme.sh

View File

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@@ -0,0 +1,5 @@
CHROME_COLOR="-65281"
CHROME_COLOR_SCHEME=1
CHROME_COLOR_VARIANT=1
CHROME_BACKGROUND="rose-pine/background.jpg"
source $OMAKUB_PATH/themes/set-chrome-theme.sh

View File

@@ -0,0 +1,4 @@
OMAKUB_THEME_COLOR="red"
OMAKUB_THEME_BACKGROUND="rose-pine/background.jpg"
source $OMAKUB_PATH/themes/set-gnome-theme.sh
gsettings set org.gnome.desktop.interface color-scheme 'prefer-light'

View File

@@ -0,0 +1,3 @@
VSC_THEME="Rosé Pine Dawn"
VSC_EXTENSION="mvllow.rose-pine"
source $OMAKUB_PATH/themes/set-vscode-theme.sh

View File

@@ -0,0 +1,16 @@
# Chrome theme update
if gum confirm "Do you want to update Chrome theme? If yes, Chrome will be restarted!"; then
pkill -f chrome
while pgrep -f chrome >/dev/null; do
sleep 0.1
done
cd ~/.config/google-chrome/Default
jq '.extensions.theme += {"id": "user_color_theme_id", "system_theme": 0}' Preferences >tmp.json && mv tmp.json Preferences
jq ".browser.theme.color_scheme = $CHROME_COLOR_SCHEME | .browser.theme.color_variant = $CHROME_COLOR_VARIANT | .browser.theme.user_color = $CHROME_COLOR" Preferences >tmp.json && mv tmp.json Preferences
jq ".ntp += {\"custom_background_dict\":{\"background_url\": \"https://github.com/basecamp/omakub/blob/master/themes/$CHROME_BACKGROUND?raw=true\"}}" Preferences >tmp.json && mv tmp.json Preferences
cd ~
google-chrome >/dev/null 2>&1 &
fi

View File

@@ -3,9 +3,9 @@ gsettings set org.gnome.desktop.interface cursor-theme 'Yaru'
gsettings set org.gnome.desktop.interface gtk-theme "Yaru-$OMAKUB_THEME_COLOR-dark"
gsettings set org.gnome.desktop.interface icon-theme "Yaru-$OMAKUB_THEME_COLOR"
BACKGROUND_ORG_PATH="$HOME/.local/share/omakub/backgrounds/$OMAKUB_THEME_BACKGROUND"
BACKGROUND_ORG_PATH="$HOME/.local/share/omakub/themes/$OMAKUB_THEME_BACKGROUND"
BACKGROUND_DEST_DIR="$HOME/.local/share/backgrounds"
BACKGROUND_DEST_PATH="$BACKGROUND_DEST_DIR/$OMAKUB_THEME_BACKGROUND"
BACKGROUND_DEST_PATH="$BACKGROUND_DEST_DIR/$(echo $OMAKUB_THEME_BACKGROUND | tr '/' '-')"
if [ ! -d "$BACKGROUND_DEST_DIR" ]; then mkdir -p "$BACKGROUND_DEST_DIR"; fi

View File

@@ -0,0 +1,2 @@
code --install-extension $VSC_EXTENSION >/dev/null
sed -i "s/\"workbench.colorTheme\": \".*\"/\"workbench.colorTheme\": \"$VSC_THEME\"/g" ~/.config/Code/User/settings.json

View File

Before

Width:  |  Height:  |  Size: 2.2 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@@ -0,0 +1,5 @@
CHROME_COLOR="3094106"
CHROME_COLOR_SCHEME=2
CHROME_COLOR_VARIANT=1
CHROME_BACKGROUND="tokyo-night/background.jpg"
source $OMAKUB_PATH/themes/set-chrome-theme.sh

View File

@@ -0,0 +1,3 @@
OMAKUB_THEME_COLOR="purple"
OMAKUB_THEME_BACKGROUND="tokyo-night/background.jpg"
source $OMAKUB_PATH/themes/set-gnome-theme.sh

View File

@@ -0,0 +1,3 @@
VSC_THEME="Tokyo Night"
VSC_EXTENSION="enkia.tokyo-night"
source $OMAKUB_PATH/themes/set-vscode-theme.sh