Compare commits
No commits in common. "71f922de5918eca1c47cee031e026cf381dedc29" and "f2d7a3adfd6d9f8700caacda40c5a0cb18c0aa9c" have entirely different histories.
71f922de59
...
f2d7a3adfd
@ -11,7 +11,7 @@ Clone the repo with submodules
|
|||||||
```
|
```
|
||||||
git clone --recurse-submodules https://git.sys42.net/dakedres/shchemes.git
|
git clone --recurse-submodules https://git.sys42.net/dakedres/shchemes.git
|
||||||
```
|
```
|
||||||
Symlink to it somewhere in your PATH. Pick your poison
|
Add symlink it to somewhere in your PATH. Pick your poison
|
||||||
```sh
|
```sh
|
||||||
ln -s $PWD/shchemes ~/bin/shchemes
|
ln -s $PWD/shchemes ~/bin/shchemes
|
||||||
ln -s $PWD/shchemes ~/.local/bin/shchemes
|
ln -s $PWD/shchemes ~/.local/bin/shchemes
|
||||||
@ -55,8 +55,6 @@ Note you'll have to add all the comments for where to place the injections
|
|||||||
|
|
||||||
See the [cookbook](./doc/cookbook.md) for some ideas on ways to use Shchemes.
|
See the [cookbook](./doc/cookbook.md) for some ideas on ways to use Shchemes.
|
||||||
|
|
||||||
You can read the manual [in your browser](./doc/manual.md) or by running `shchemes help`.
|
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
This software is a work of opportunism
|
This software is a work of opportunism
|
||||||
|
|
||||||
|
6
base16/convert_scheme.sh
Executable file
6
base16/convert_scheme.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
awk -F ' *: *' '
|
||||||
|
/^#/ { print }
|
||||||
|
$1 ~ "palette" { p = 1; next }
|
||||||
|
p && /^ +/ { gsub(/ /, "", $1); print $1 "=" $2 }
|
||||||
|
' $1
|
9
base16/install.sh
Executable file
9
base16/install.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
echo '
|
||||||
|
https://raw.githubusercontent.com/tinted-theming/base16-qutebrowser/main/templates/default.mustache qutebrowser
|
||||||
|
https://raw.githubusercontent.com/tinted-theming/base16-qutebrowser/main/templates/minimal.mustache qutebrowser-minimal
|
||||||
|
https://raw.githubusercontent.com/tinted-theming/base16-rofi/master/templates/default.mustache rofi
|
||||||
|
https://raw.githubusercontent.com/tinted-theming/base16-rofi/master/templates/minimal.mustache rofi-minimal
|
||||||
|
https://raw.githubusercontent.com/aarowill/base16-alacritty/master/templates/default.mustache alacritty
|
||||||
|
' | awk '
|
||||||
|
/^http/ { system("shchemes install_tinted_template " $1 " " $2) }
|
||||||
|
'
|
7
base16/install_scheme.sh
Executable file
7
base16/install_scheme.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=$1
|
||||||
|
URL=https://raw.githubusercontent.com/tinted-theming/schemes/master/base16/$NAME.yaml
|
||||||
|
|
||||||
|
cd $(dirname $(readlink -f $0))
|
||||||
|
curl $URL | sh ./convert_scheme.sh > ./schemes/$NAME.properties
|
16
base16/schemes/blueforest.properties
Normal file
16
base16/schemes/blueforest.properties
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
base00="141F2E"
|
||||||
|
base01="1e5c1e"
|
||||||
|
base02="273e5c"
|
||||||
|
base03="a0ffa0"
|
||||||
|
base04="1e5c1e"
|
||||||
|
base05="FFCC33"
|
||||||
|
base06="91CCFF"
|
||||||
|
base07="375780"
|
||||||
|
base08="fffab1"
|
||||||
|
base09="FF8080"
|
||||||
|
base0A="91CCFF"
|
||||||
|
base0B="80ff80"
|
||||||
|
base0C="80ff80"
|
||||||
|
base0D="a2cff5"
|
||||||
|
base0E="0099FF"
|
||||||
|
base0F="e7e7e7"
|
16
base16/schemes/github.properties
Normal file
16
base16/schemes/github.properties
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
base00="ffffff"
|
||||||
|
base01="f5f5f5"
|
||||||
|
base02="c8c8fa"
|
||||||
|
base03="969896"
|
||||||
|
base04="e8e8e8"
|
||||||
|
base05="333333"
|
||||||
|
base06="ffffff"
|
||||||
|
base07="ffffff"
|
||||||
|
base08="ed6a43"
|
||||||
|
base09="0086b3"
|
||||||
|
base0A="795da3"
|
||||||
|
base0B="183691"
|
||||||
|
base0C="183691"
|
||||||
|
base0D="795da3"
|
||||||
|
base0E="a71d5d"
|
||||||
|
base0F="333333"
|
16
base16/schemes/heetch.properties
Normal file
16
base16/schemes/heetch.properties
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
base00="190134"
|
||||||
|
base01="392551"
|
||||||
|
base02="5A496E"
|
||||||
|
base03="7B6D8B"
|
||||||
|
base04="9C92A8"
|
||||||
|
base05="BDB6C5"
|
||||||
|
base06="DEDAE2"
|
||||||
|
base07="FEFFFF"
|
||||||
|
base08="27D9D5"
|
||||||
|
base09="5BA2B6"
|
||||||
|
base0A="8F6C97"
|
||||||
|
base0B="C33678"
|
||||||
|
base0C="F80059"
|
||||||
|
base0D="BD0152"
|
||||||
|
base0E="82034C"
|
||||||
|
base0F="470546"
|
16
base16/schemes/horizon-terminal-dark.properties
Normal file
16
base16/schemes/horizon-terminal-dark.properties
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
base00="1C1E26"
|
||||||
|
base01="232530"
|
||||||
|
base02="2E303E"
|
||||||
|
base03="6F6F70"
|
||||||
|
base04="9DA0A2"
|
||||||
|
base05="CBCED0"
|
||||||
|
base06="DCDFE4"
|
||||||
|
base07="E3E6EE"
|
||||||
|
base08="E95678"
|
||||||
|
base09="FAB795"
|
||||||
|
base0A="FAC29A"
|
||||||
|
base0B="29D398"
|
||||||
|
base0C="59E1E3"
|
||||||
|
base0D="26BBD9"
|
||||||
|
base0E="EE64AC"
|
||||||
|
base0F="F09383"
|
16
base16/schemes/still-alive.properties
Normal file
16
base16/schemes/still-alive.properties
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
base00="F0F0F0"
|
||||||
|
base01="F0D848"
|
||||||
|
base02="FFF018"
|
||||||
|
base03="F01818"
|
||||||
|
base04="F00000"
|
||||||
|
base05="D80000"
|
||||||
|
base06="489000"
|
||||||
|
base07="30A860"
|
||||||
|
base08="487830"
|
||||||
|
base09="183048"
|
||||||
|
base0A="426395"
|
||||||
|
base0B="5C5C6A"
|
||||||
|
base0C="2C3C57"
|
||||||
|
base0D="001878"
|
||||||
|
base0E="900000"
|
||||||
|
base0F="140C0D"
|
24
base24/schemes/chalk.properties
Normal file
24
base24/schemes/chalk.properties
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
base00="151515"
|
||||||
|
base01="202020"
|
||||||
|
base02="303030"
|
||||||
|
base03="505050"
|
||||||
|
base04="b0b0b0"
|
||||||
|
base05="d0d0d0"
|
||||||
|
base06="e0e0e0"
|
||||||
|
base07="f5f5f5"
|
||||||
|
base08="fa859c"
|
||||||
|
base09="ea9971"
|
||||||
|
base0A="ddb26f"
|
||||||
|
base0B="a1bb54"
|
||||||
|
base0C="10bcad"
|
||||||
|
base0D="5ab9ed"
|
||||||
|
base0E="db8fea"
|
||||||
|
base0F="deaf8f"
|
||||||
|
base10="0b0b0b"
|
||||||
|
base11="060606"
|
||||||
|
base12="fb9fb1"
|
||||||
|
base13="eda987"
|
||||||
|
base14="acc267"
|
||||||
|
base15="12cfc0"
|
||||||
|
base16="6fc2ef"
|
||||||
|
base17="e1a3ee"
|
@ -50,7 +50,7 @@ shchemes create_theme alacritty --format=base24
|
|||||||
|
|
||||||
## METHODS
|
## METHODS
|
||||||
|
|
||||||
## create_theme {#create_theme}
|
## create_theme
|
||||||
|
|
||||||
Apply the color scheme to the template for a given app
|
Apply the color scheme to the template for a given app
|
||||||
```
|
```
|
||||||
@ -66,9 +66,7 @@ In the given file, looks for a comment that indicates a Shchemes injection block
|
|||||||
shchemes inject PATH
|
shchemes inject PATH
|
||||||
```
|
```
|
||||||
|
|
||||||
See also: [`create_theme`](#create_theme)
|
## install_tinted_scheme
|
||||||
|
|
||||||
## install_tinted_scheme {#install_tinted_scheme}
|
|
||||||
Installs a color scheme from the [tinted-theming/schemes](https://github.com/tinted-theming/schemes).
|
Installs a color scheme from the [tinted-theming/schemes](https://github.com/tinted-theming/schemes).
|
||||||
|
|
||||||
You can find a gallery of the base16 themes here:
|
You can find a gallery of the base16 themes here:
|
||||||
@ -77,40 +75,7 @@ You can find a gallery of the base16 themes here:
|
|||||||
shchemes install_tinted_scheme
|
shchemes install_tinted_scheme
|
||||||
```
|
```
|
||||||
|
|
||||||
See also: [`SCHEME`](#SCHEME) [`--scheme`](#scheme) [`convert_tinted_scheme`](#convert_tinted_scheme)
|
See also: [`SCHEME`](#SCHEME) [`--scheme`](#scheme)
|
||||||
|
|
||||||
## convert_tinted_scheme {#convert_tinted_scheme}
|
|
||||||
Converts a tinted-theming scheme to a .properties format for use in shchemes.
|
|
||||||
|
|
||||||
```
|
|
||||||
shchemes convert_tinted_scheme pico.yaml
|
|
||||||
cat pico.yaml > shchemes convert_tinted_scheme
|
|
||||||
```
|
|
||||||
|
|
||||||
See also: [`install_tinted_scheme`](#install_tinted_scheme)
|
|
||||||
|
|
||||||
## install_tinted_template {#install_tinted_template}
|
|
||||||
Downloads, converts, and installs a tinted-theming template from a given url.
|
|
||||||
|
|
||||||
```
|
|
||||||
shchemes install_tinted_template https://raw.githubusercontent.com/tinted-theming/base16-emacs/main/templates/default.mustache
|
|
||||||
```
|
|
||||||
|
|
||||||
It is recommended that you use already-maintained shchemes templates rather than just installing and converting third party ones.
|
|
||||||
|
|
||||||
See also: [`convert_tinted_template`](#convert_tinted_template)
|
|
||||||
|
|
||||||
## convert_tinted_template {#convert_tinted_template}
|
|
||||||
Converts a tinted-theming .mustache template to a shchemes template.
|
|
||||||
|
|
||||||
```
|
|
||||||
shchemes convert_tinted_template default.mustache > ~/shchemes/base16/templates/emacs.mustache
|
|
||||||
```
|
|
||||||
|
|
||||||
See also: [`install_tinted_template`](#install_tinted_template)
|
|
||||||
|
|
||||||
## manual, man, help
|
|
||||||
Opens this manual
|
|
||||||
|
|
||||||
# AUTHOR
|
# AUTHOR
|
||||||
|
|
||||||
|
@ -75,8 +75,6 @@ pipes the stdout into the content of the injection block.
|
|||||||
shchemes inject PATH
|
shchemes inject PATH
|
||||||
\f[R]
|
\f[R]
|
||||||
.fi
|
.fi
|
||||||
.PP
|
|
||||||
See also: \f[V]create_theme\f[R]
|
|
||||||
.SS install_tinted_scheme
|
.SS install_tinted_scheme
|
||||||
.PP
|
.PP
|
||||||
Installs a color scheme from the
|
Installs a color scheme from the
|
||||||
@ -92,49 +90,6 @@ shchemes install_tinted_scheme
|
|||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
See also: \f[V]SCHEME\f[R] \f[V]--scheme\f[R]
|
See also: \f[V]SCHEME\f[R] \f[V]--scheme\f[R]
|
||||||
\f[V]convert_tinted_scheme\f[R]
|
|
||||||
.SS convert_tinted_scheme
|
|
||||||
.PP
|
|
||||||
Converts a tinted-theming scheme to a .properties format for use in
|
|
||||||
shchemes.
|
|
||||||
.IP
|
|
||||||
.nf
|
|
||||||
\f[C]
|
|
||||||
shchemes convert_tinted_scheme pico.yaml
|
|
||||||
cat pico.yaml > shchemes convert_tinted_scheme
|
|
||||||
\f[R]
|
|
||||||
.fi
|
|
||||||
.PP
|
|
||||||
See also: \f[V]install_tinted_scheme\f[R]
|
|
||||||
.SS install_tinted_template
|
|
||||||
.PP
|
|
||||||
Downloads, converts, and installs a tinted-theming template from a given
|
|
||||||
url.
|
|
||||||
.IP
|
|
||||||
.nf
|
|
||||||
\f[C]
|
|
||||||
shchemes install_tinted_template https://raw.githubusercontent.com/tinted-theming/base16-emacs/main/templates/default.mustache
|
|
||||||
\f[R]
|
|
||||||
.fi
|
|
||||||
.PP
|
|
||||||
It is recommended that you use already-maintained shchemes templates
|
|
||||||
rather than just installing and converting third party ones.
|
|
||||||
.PP
|
|
||||||
See also: \f[V]convert_tinted_template\f[R]
|
|
||||||
.SS convert_tinted_template
|
|
||||||
.PP
|
|
||||||
Converts a tinted-theming .mustache template to a shchemes template.
|
|
||||||
.IP
|
|
||||||
.nf
|
|
||||||
\f[C]
|
|
||||||
shchemes convert_tinted_template default.mustache > \[ti]/shchemes/base16/templates/emacs.mustache
|
|
||||||
\f[R]
|
|
||||||
.fi
|
|
||||||
.PP
|
|
||||||
See also: \f[V]install_tinted_template\f[R]
|
|
||||||
.SS manual, man, help
|
|
||||||
.PP
|
|
||||||
Opens this manual
|
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
.PP
|
.PP
|
||||||
Shchemes is written by Dakedres
|
Shchemes is written by Dakedres
|
||||||
|
2
shchemes
2
shchemes
@ -175,7 +175,7 @@ convert_tinted_template() {
|
|||||||
-e 's/\{\{base([0-9A-F]+)-hex\}\}/{{base\1}}/' \
|
-e 's/\{\{base([0-9A-F]+)-hex\}\}/{{base\1}}/' \
|
||||||
-e 's/\{\{base([0-9A-F]+)-rgb-r\}\}/{{rgb_r base\1}}/' \
|
-e 's/\{\{base([0-9A-F]+)-rgb-r\}\}/{{rgb_r base\1}}/' \
|
||||||
-e 's/\{\{base([0-9A-F]+)-rgb-g\}\}/{{rgb_g base\1}}/' \
|
-e 's/\{\{base([0-9A-F]+)-rgb-g\}\}/{{rgb_g base\1}}/' \
|
||||||
-e 's/\{\{base([0-9A-F]+)-rgb-b\}\}/{{rgb_b base\1}}/' "$path"
|
-e 's/\{\{base([0-9A-F]+)-rgb-b\}\}/{{rgb_b base\1}}/'
|
||||||
}
|
}
|
||||||
|
|
||||||
convert_tinted_scheme() {
|
convert_tinted_scheme() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user