make chromium version of the script
This commit is contained in:
parent
847ab3e01e
commit
39aff7be08
13
README.md
13
README.md
|
@ -8,15 +8,20 @@ Clone the repository into ~/.config/qutebrowser and add these two lines to confi
|
|||
config.set('url.start_pages','~/.config/qutebrowser/startpage/index.html')
|
||||
config.set('url.default_page','~/.config/qutebrowser/startpage/index.html')
|
||||
|
||||
You don't need to edit script.sh if you're using qutebrowser as it is default.
|
||||
You don't need to edit script-qutebrowser.sh if you're using speedwm as it is default.
|
||||
|
||||
## Usage with Chromium
|
||||
Clone the repository into ~/.config and set the start page (I'll assume you know how to do this on Chromium) and then see 'To copy in the wallpaper'
|
||||
|
||||
For pywal support in the browser (as a theme), clone https://github.com/metafates/ChromiumPywal into ~/.config/startpage/. See that repo for more information on how to use it.
|
||||
|
||||
## Usage for other browsers
|
||||
Clone the repository and edit script.sh and change PREFIX.
|
||||
Clone the repository and edit script-chromium.sh and change PREFIX if you aren't using speedwm.
|
||||
Check the wiki on how to set a start page for your specific browser.
|
||||
|
||||
## To copy in the wallpaper
|
||||
If you're using speedwm-extras, you can copy the script to ~/.config/speedwm/swal/postrun.sh.
|
||||
Note that you need to be using speedwm-swal newer than 1.2 for this.
|
||||
If you're using speedwm-extras, you can copy the script for your browser to ~/.config/speedwm/swal/postrun.sh.
|
||||
Note that you need to be using speedwm-swal > 1.2 for this.
|
||||
Otherwise find some other method to copy the wallpaper to img/wallpaper.
|
||||
|
||||
## Pywal
|
||||
|
|
13
fontcol.css
Normal file
13
fontcol.css
Normal file
|
@ -0,0 +1,13 @@
|
|||
a {
|
||||
color: #B0CAD7;
|
||||
}
|
||||
h1 {
|
||||
color: #5E6867;
|
||||
}
|
||||
p {
|
||||
color: #3B464F;
|
||||
}
|
||||
input[type=search] {
|
||||
-webkit-box-shadow: 0 0 0px 1000px #758582 inset;
|
||||
-webkit-text-fill-color: #e3e5e5 !important;
|
||||
}
|
BIN
img/wallpaper
BIN
img/wallpaper
Binary file not shown.
Before Width: | Height: | Size: 3.8 MiB After Width: | Height: | Size: 1.9 MiB |
37
script-chromium.sh
Executable file
37
script-chromium.sh
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/sh
|
||||
# Simple script for speedwm-swal which copies the current wallpaper to img/wallpaper and sets colors.
|
||||
# Licensed under GNU GPLv3.
|
||||
|
||||
PREFIX="$HOME/.config" # Prefix
|
||||
CWAL="$HOME/.config/speedwm/swal/CurrentWallpaper" # Symlink to the current wallpaper, change this if you're not using speedwm
|
||||
IPATH="$(readlink "$CWAL")" # Real path for current wallpaper, if CWAL is proper this doesn't need to be changed
|
||||
|
||||
# Copy current wallpaper to img/wallpaper
|
||||
if [ -e "$IPATH" ]; then
|
||||
/bin/cp "$IPATH" "$PREFIX/startpage/img/wallpaper"
|
||||
else
|
||||
printf "Wallpaper is not available, skipping.\n"
|
||||
fi
|
||||
|
||||
# Color for links
|
||||
. "$PREFIX/startpage/colors"
|
||||
|
||||
# Set colors based on wal/colors
|
||||
if [ -e "$HOME/.cache/wal/colors" ]; then
|
||||
LINKCOLOR="$(sed -n 7,7p $HOME/.cache/wal/colors)"
|
||||
PARACOLOR="$(sed -n 2,2p $HOME/.cache/wal/colors)"
|
||||
HEADCOLOR="$(sed -n 4,4p $HOME/.cache/wal/colors)"
|
||||
TXSXCOLOR="$(sed -n 8,8p $HOME/.cache/wal/colors)"
|
||||
BGSXCOLOR="$(sed -n 13,13p $HOME/.cache/wal/colors)"
|
||||
fi
|
||||
|
||||
printf "a {\n color: ${LINKCOLOR};\n}\n" > "$PREFIX/startpage/fontcol.css"
|
||||
printf "h1 {\n color: ${HEADCOLOR};\n}\n" >> "$PREFIX/startpage/fontcol.css"
|
||||
printf "p {\n color: ${PARACOLOR};\n}\n" >> "$PREFIX/startpage/fontcol.css"
|
||||
printf "input[type=search] {\n -webkit-box-shadow: 0 0 0px 1000px ${BGSXCOLOR} inset;\n -webkit-text-fill-color: ${TXSXCOLOR} !important;\n}\n" >> $PREFIX/startpage/fontcol.css
|
||||
|
||||
# NOTE: For pywal support in the browser, clone https://github.com/metafates/ChromiumPywal into the current directory
|
||||
# See that repo for more information.
|
||||
if [ -e "$PREFIX/startpage/ChromiumPywal/generate-theme.sh" ]; then
|
||||
$PREFIX/startpage/ChromiumPywal/generate-theme.sh
|
||||
fi
|
Loading…
Reference in a new issue