mirror of
https://github.com/RGBCube/ThemeNix
synced 2025-08-02 19:37:45 +00:00
Compare commits
2 commits
c188d0d729
...
1267b9132b
Author | SHA1 | Date | |
---|---|---|---|
1267b9132b | |||
ef2c6ce044 |
2 changed files with 11 additions and 11 deletions
|
@ -24,7 +24,7 @@ def theme-to-nix [
|
||||||
}
|
}
|
||||||
|
|
||||||
def generate-valid-themes [] {
|
def generate-valid-themes [] {
|
||||||
echo "generating themes.nix..."
|
print "generating themes.nix..."
|
||||||
|
|
||||||
ls themes
|
ls themes
|
||||||
| each { |it| ' "' + ($it.name | path parse | get stem) + '" = import ./' + $it.name + ";" }
|
| each { |it| ' "' + ($it.name | path parse | get stem) + '" = import ./' + $it.name + ";" }
|
||||||
|
@ -36,16 +36,16 @@ def generate-valid-themes [] {
|
||||||
|
|
||||||
def main [] {
|
def main [] {
|
||||||
if not ("base16-schemes" | path exists) {
|
if not ("base16-schemes" | path exists) {
|
||||||
echo "base16-schemes doesn't exist, cloning..."
|
print "base16-schemes doesn't exist, cloning..."
|
||||||
git clone https://github.com/tinted-theming/base16-schemes
|
git clone https://github.com/tinted-theming/base16-schemes
|
||||||
} else {
|
} else {
|
||||||
echo "base16-schemes exists, updating"
|
print "base16-schemes exists, updating"
|
||||||
cd base16-schemes
|
cd base16-schemes
|
||||||
git pull
|
git pull
|
||||||
cd ..
|
cd ..
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "deleting old themes..."
|
print "deleting old themes..."
|
||||||
rm -rf themes
|
rm -rf themes
|
||||||
mkdir themes
|
mkdir themes
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ def main [] {
|
||||||
| each { |it|
|
| each { |it|
|
||||||
let new_path = "themes/" + ($it.name | path parse | get stem) + ".nix"
|
let new_path = "themes/" + ($it.name | path parse | get stem) + ".nix"
|
||||||
|
|
||||||
echo $"converting ($it.name) to ($new_path)..."
|
print $"converting ($it.name) to ($new_path)..."
|
||||||
|
|
||||||
theme-to-nix (open $it.name) | save $new_path
|
theme-to-nix (open $it.name) | save $new_path
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,19 +15,19 @@ theme[selected_bg]="${base01}"
|
||||||
|
|
||||||
theme[selected_fg]="${base06}"
|
theme[selected_fg]="${base06}"
|
||||||
|
|
||||||
theme[inactive_fg]="${base0E}"
|
theme[inactive_fg]="${base03}"
|
||||||
|
|
||||||
theme[proc_misc]="${base0B}"
|
theme[proc_misc]="${base0B}"
|
||||||
|
|
||||||
theme[cpu_box]="${base0E}"
|
theme[cpu_box]="${base03}"
|
||||||
|
|
||||||
theme[mem_box]="${base0E}"
|
theme[mem_box]="${base03}"
|
||||||
|
|
||||||
theme[net_box]="${base0E}"
|
theme[net_box]="${base03}"
|
||||||
|
|
||||||
theme[proc_box]="${base0E}"
|
theme[proc_box]="${base03}"
|
||||||
|
|
||||||
theme[div_line]="${base0E}"
|
theme[div_line]="${base03}"
|
||||||
|
|
||||||
theme[temp_start]="${base0C}"
|
theme[temp_start]="${base0C}"
|
||||||
theme[temp_mid]="${base0A}"
|
theme[temp_mid]="${base0A}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue