refactor rice into config
This commit is contained in:
parent
8872a12d20
commit
818af30329
64 changed files with 229 additions and 230 deletions
55
common/rice/default.nix
Normal file
55
common/rice/default.nix
Normal file
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
nix-rice = import "${inputs.nix-rice}/lib.nix" {
|
||||
inherit lib;
|
||||
kitty-themes-src = { };
|
||||
};
|
||||
inherit (nix-rice) kitty-themes;
|
||||
inherit (nix-rice.palette) toRGBShortHex toRGBHex;
|
||||
theme = kitty-themes.parseTheme ./pal.conf;
|
||||
in
|
||||
{
|
||||
options.rice = lib.mkOption {
|
||||
description = "ricing related variables";
|
||||
default = { };
|
||||
type = lib.types.attrsOf lib.types.anything;
|
||||
};
|
||||
config.rice = rec {
|
||||
palette = theme // {
|
||||
normal = {
|
||||
black = theme.color0;
|
||||
red = theme.color1;
|
||||
green = theme.color2;
|
||||
yellow = theme.color3;
|
||||
blue = theme.color4;
|
||||
magenta = theme.color5;
|
||||
cyan = theme.color6;
|
||||
white = theme.color7;
|
||||
};
|
||||
bright = {
|
||||
black = theme.color8;
|
||||
red = theme.color9;
|
||||
green = theme.color10;
|
||||
yellow = theme.color11;
|
||||
blue = theme.color12;
|
||||
magenta = theme.color13;
|
||||
cyan = theme.color14;
|
||||
white = theme.color15;
|
||||
};
|
||||
util = {
|
||||
fg = theme.foreground;
|
||||
bg = theme.background;
|
||||
fg_sel = theme.selection_foreground;
|
||||
bg_sel = theme.selection_background;
|
||||
inherit (theme) cursor;
|
||||
# url = theme.url_color;
|
||||
};
|
||||
hex = toRGBHex palette;
|
||||
shortHex = toRGBShortHex palette;
|
||||
};
|
||||
};
|
||||
}
|
46
common/rice/header.sh
Executable file
46
common/rice/header.sh
Executable file
|
@ -0,0 +1,46 @@
|
|||
#!/bin/sh
|
||||
|
||||
row1() {
|
||||
m="0"
|
||||
printf "\e[38;5;$((m*8))m██\e[48;5;$((m*8+1))m\e[m"
|
||||
for n in {1..6};do
|
||||
printf "\e[38;5;$((n+m*8))m██\e[48;5;$((n+m*8+1))m\e[m"
|
||||
done
|
||||
printf "\e[m\e[38;5;$((m*8+7))m██\e[m"
|
||||
}
|
||||
|
||||
row2() {
|
||||
m="1"
|
||||
printf "\e[38;5;$((m*8))m██\e[38;5;$((m*8+1))m\e[48;5;$((m*8))m\e[m"
|
||||
for n in {1..6};do
|
||||
printf "\e[38;5;$((n+m*8))m██\e[38;5;$((n+m*8+1))m\e[48;5;$((n+m*8))m\e[m"
|
||||
done
|
||||
printf "\e[m\e[38;5;$((m*8+7))m██\e[m"
|
||||
}
|
||||
|
||||
row1r() {
|
||||
m="0"
|
||||
printf "\e[38;5;$((m*8+7))m██\e[48;5;$((m*8+6))m\e[m"
|
||||
for n in {6..1};do
|
||||
printf "\e[38;5;$((n+m*8))m██\e[48;5;$((n+m*8-1))m\e[m"
|
||||
done
|
||||
printf "\e[m\e[38;5;$((m))m██\e[m"
|
||||
}
|
||||
|
||||
row2r() {
|
||||
m="1"
|
||||
printf "\e[38;5;$((m*8+7))m██\e[38;5;$((m*8+6))m\e[48;5;$((m*8+7))m\e[m"
|
||||
for n in {6..1};do
|
||||
printf "\e[38;5;$((n+m*8))m██\e[38;5;$((n+m*8-1))m\e[48;5;$((n+m*8))m\e[m"
|
||||
done
|
||||
printf "\e[m\e[38;5;$((m*8))m██\e[m"
|
||||
}
|
||||
|
||||
for n in {0..4}; do
|
||||
row1
|
||||
# row1r
|
||||
printf "\n"
|
||||
row2
|
||||
# row2r
|
||||
printf "\n"
|
||||
done
|
32
common/rice/pal.conf
Normal file
32
common/rice/pal.conf
Normal file
|
@ -0,0 +1,32 @@
|
|||
background #1b2021
|
||||
foreground #cecbca
|
||||
|
||||
color0 #272a2a
|
||||
color8 #202e2f
|
||||
|
||||
color1 #c43325
|
||||
color9 #c46056
|
||||
|
||||
color2 #8cc992
|
||||
color10 #c2dab0
|
||||
|
||||
color3 #ffb852
|
||||
color11 #ffab5b
|
||||
|
||||
color4 #5299ff
|
||||
color12 #92beff
|
||||
|
||||
color5 #645ac9
|
||||
color13 #928cc9
|
||||
|
||||
color6 #5abfc9
|
||||
color14 #8cc4c9
|
||||
|
||||
color7 #b0c2da
|
||||
color15 #caccce
|
||||
|
||||
selection_background #202e2f
|
||||
selection_foreground #5299ff
|
||||
|
||||
cursor #caccce
|
||||
cursor_text_color #5299ff
|
BIN
common/rice/wallpaper.jpg
Normal file
BIN
common/rice/wallpaper.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 MiB |
Loading…
Add table
Add a link
Reference in a new issue