screenshots added
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
# Chromium pywal theme generator
|
# Chromium pywal theme generator
|
||||||
|
|
||||||
Generates a chromium theme by using colors generated by [pywal](https://github.com/dylanaraps/pywal)
|
Generates a chromium theme by using colors generated by [pywal](https://github.com/dylanaraps/pywal)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|||||||
BIN
Screenshots/screenshot.png
Normal file
BIN
Screenshots/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 500 KiB |
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
. ~/.cache/wal/colors.sh
|
. ~/.cache/wal/colors.sh
|
||||||
|
|
||||||
|
# Your path for extensions folder here
|
||||||
THEME_PATH="$HOME/Chromium Extensions/pywaltheme"
|
THEME_PATH="$HOME/Chromium Extensions/pywaltheme"
|
||||||
|
|
||||||
hexToRgb() {
|
hexToRgb() {
|
||||||
@@ -10,27 +11,36 @@ hexToRgb() {
|
|||||||
printf "%d, %d, %d" 0x${plain:0:2} 0x${plain:2:2} 0x${plain:4:2}
|
printf "%d, %d, %d" 0x${plain:0:2} 0x${plain:2:2} 0x${plain:4:2}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ ! -d "$THEME_PATH/images" ]; then
|
||||||
|
mkdir "$THEME_PATH/images"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp $wallpaper "$THEME_PATH/images/theme_ntp_background_norepeat.png"
|
||||||
|
|
||||||
cat > "$THEME_PATH/manifest.json" << EOF
|
cat > "$THEME_PATH/manifest.json" << EOF
|
||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
"name": "pywal theme",
|
"name": "pywal theme",
|
||||||
|
"images": {
|
||||||
|
"theme_ntp_background" : "images/theme_ntp_background_norepeat.png"
|
||||||
|
},
|
||||||
"theme": {
|
"theme": {
|
||||||
"colors" : {
|
"colors": {
|
||||||
"frame" : [$(hexToRgb $background)],
|
"frame": [$(hexToRgb $background)],
|
||||||
"frame_inactive": [$(hexToRgb $background)],
|
"frame_inactive": [$(hexToRgb $background)],
|
||||||
"toolbar" : [$(hexToRgb $color11)],
|
"toolbar": [$(hexToRgb $color11)],
|
||||||
"ntp_text" : [$(hexToRgb $foreground)],
|
"ntp_text": [$(hexToRgb $foreground)],
|
||||||
"ntp_link" : [$(hexToRgb $color11)],
|
"ntp_link": [$(hexToRgb $color11)],
|
||||||
"ntp_section" : [$(hexToRgb $color8)],
|
"ntp_section": [$(hexToRgb $color8)],
|
||||||
"button_background" : [$(hexToRgb $foreground)],
|
"button_background": [$(hexToRgb $foreground)],
|
||||||
"toolbar_button_icon" : [$(hexToRgb $foreground)],
|
"toolbar_button_icon": [$(hexToRgb $foreground)],
|
||||||
"toolbar_text": [$(hexToRgb $foreground)],
|
"toolbar_text": [$(hexToRgb $foreground)],
|
||||||
"omnibox_background": [$(hexToRgb $background)],
|
"omnibox_background": [$(hexToRgb $background)],
|
||||||
"omnibox_text": [$(hexToRgb $foreground)]
|
"omnibox_text": [$(hexToRgb $foreground)]
|
||||||
},
|
},
|
||||||
"properties" : {
|
"properties": {
|
||||||
"ntp_background_alignment" : "bottom"
|
"ntp_background_alignment": "bottom"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user