mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
vivid: add module (#7772)
This commit is contained in:
parent
6159629d05
commit
b21c1a61a7
7 changed files with 458 additions and 0 deletions
1
tests/modules/programs/vivid/default.nix
Normal file
1
tests/modules/programs/vivid/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ vivid-example-config = ./example-config.nix; }
|
||||
45
tests/modules/programs/vivid/example-config.nix
Normal file
45
tests/modules/programs/vivid/example-config.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
programs.vivid = {
|
||||
enable = true;
|
||||
colorMode = "8-bit";
|
||||
filetypes = {
|
||||
text = {
|
||||
special = [
|
||||
"CHANGELOG.md"
|
||||
"CODE_OF_CONDUCT.md"
|
||||
"CONTRIBUTING.md"
|
||||
];
|
||||
|
||||
todo = [
|
||||
"TODO.md"
|
||||
"TODO.txt"
|
||||
];
|
||||
|
||||
licenses = [
|
||||
"LICENCE"
|
||||
"COPYRIGHT"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
activeTheme = "mocha";
|
||||
themes = {
|
||||
ayu = ./themes/ayu.yml;
|
||||
mocha = ./themes/mocha.yml;
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/vivid/filetypes.yml
|
||||
assertFileContent home-files/.config/vivid/filetypes.yml \
|
||||
${./filetypes.yml}
|
||||
|
||||
assertFileExists home-files/.config/vivid/themes/ayu.yml
|
||||
assertFileContent home-files/.config/vivid/themes/ayu.yml \
|
||||
${./themes/ayu.yml}
|
||||
|
||||
assertFileExists home-files/.config/vivid/themes/mocha.yml
|
||||
assertFileContent home-files/.config/vivid/themes/mocha.yml \
|
||||
${./themes/mocha.yml}
|
||||
'';
|
||||
}
|
||||
11
tests/modules/programs/vivid/filetypes.yml
Normal file
11
tests/modules/programs/vivid/filetypes.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
text:
|
||||
licenses:
|
||||
- LICENCE
|
||||
- COPYRIGHT
|
||||
special:
|
||||
- CHANGELOG.md
|
||||
- CODE_OF_CONDUCT.md
|
||||
- CONTRIBUTING.md
|
||||
todo:
|
||||
- TODO.md
|
||||
- TODO.txt
|
||||
120
tests/modules/programs/vivid/themes/ayu.yml
Normal file
120
tests/modules/programs/vivid/themes/ayu.yml
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
colors:
|
||||
# Based on original "ayu" theme:
|
||||
# https://github.com/ayu-theme/ayu-colors
|
||||
background_color: 'fafafa'
|
||||
black: '000'
|
||||
apricot: 'ed9366'
|
||||
green: '318866'
|
||||
sienna: 'ed666a'
|
||||
blue: '1b7dc4'
|
||||
pink: 'f07171'
|
||||
lime: '86b300'
|
||||
|
||||
light_green: '9ae845'
|
||||
|
||||
gray: '666666'
|
||||
lightgray: 'aaa'
|
||||
|
||||
core:
|
||||
normal_text: {}
|
||||
regular_file: {}
|
||||
reset_to_normal: {}
|
||||
|
||||
directory:
|
||||
foreground: blue
|
||||
|
||||
symlink:
|
||||
foreground: pink
|
||||
|
||||
multi_hard_link: {}
|
||||
|
||||
fifo:
|
||||
foreground: black
|
||||
background: blue
|
||||
|
||||
socket:
|
||||
foreground: black
|
||||
background: pink
|
||||
|
||||
door:
|
||||
foreground: black
|
||||
background: pink
|
||||
|
||||
block_device:
|
||||
foreground: black
|
||||
background: sienna
|
||||
|
||||
character_device:
|
||||
foreground: black
|
||||
background: lime
|
||||
|
||||
broken_symlink:
|
||||
foreground: black
|
||||
background: sienna
|
||||
|
||||
missing_symlink_target:
|
||||
foreground: black
|
||||
background: sienna
|
||||
|
||||
setuid: {}
|
||||
|
||||
setgid: {}
|
||||
|
||||
file_with_capability: {}
|
||||
|
||||
sticky_other_writable: {}
|
||||
|
||||
other_writable: {}
|
||||
|
||||
sticky: {}
|
||||
|
||||
executable_file:
|
||||
foreground: sienna
|
||||
font-style: bold
|
||||
|
||||
text:
|
||||
special:
|
||||
foreground: black
|
||||
background: apricot
|
||||
|
||||
todo:
|
||||
font-style: bold
|
||||
|
||||
licenses:
|
||||
foreground: gray
|
||||
|
||||
configuration:
|
||||
foreground: apricot
|
||||
|
||||
other:
|
||||
foreground: apricot
|
||||
|
||||
markup:
|
||||
foreground: apricot
|
||||
|
||||
programming:
|
||||
source:
|
||||
foreground: green
|
||||
|
||||
tooling:
|
||||
foreground: light_green
|
||||
|
||||
continuous-integration:
|
||||
foreground: green
|
||||
|
||||
media:
|
||||
foreground: pink
|
||||
|
||||
office:
|
||||
foreground: sienna
|
||||
|
||||
archives:
|
||||
foreground: lime
|
||||
font-style: underline
|
||||
|
||||
executable:
|
||||
foreground: sienna
|
||||
font-style: bold
|
||||
|
||||
unimportant:
|
||||
foreground: lightgray
|
||||
136
tests/modules/programs/vivid/themes/mocha.yml
Normal file
136
tests/modules/programs/vivid/themes/mocha.yml
Normal file
|
|
@ -0,0 +1,136 @@
|
|||
colors:
|
||||
# Original "catppuccin" theme
|
||||
# https://github.com/catppuccin/catppuccin
|
||||
|
||||
rosewater: 'f5e0dc'
|
||||
flamingo: 'f2cdcd'
|
||||
pink: 'f5c2e7'
|
||||
mauve: 'cba6f7'
|
||||
red: 'f38ba8'
|
||||
maroon: 'eba0ac'
|
||||
peach: 'fab387'
|
||||
yellow: 'f9e2af'
|
||||
green: 'a6e3a1'
|
||||
teal: '94e2d5'
|
||||
sky: '89dceb'
|
||||
sapphire: '74c7ec'
|
||||
blue: '89b4fa'
|
||||
lavender: 'b4befe'
|
||||
|
||||
text: 'cdd6f4'
|
||||
subtext1: 'bac2de'
|
||||
subtext0: 'a6adc8'
|
||||
overlay2: '9399b2'
|
||||
overlay1: '7f849c'
|
||||
overlay0: '6c7086'
|
||||
surface2: '585b70'
|
||||
surface1: '45475a'
|
||||
surface0: '313244'
|
||||
|
||||
base: '1e1e2e'
|
||||
mantle: '181825'
|
||||
crust: '11111b'
|
||||
|
||||
core:
|
||||
normal_text: {}
|
||||
regular_file: {}
|
||||
reset_to_normal: {}
|
||||
|
||||
directory:
|
||||
foreground: blue
|
||||
|
||||
symlink:
|
||||
foreground: pink
|
||||
|
||||
multi_hard_link: {}
|
||||
|
||||
fifo:
|
||||
foreground: crust
|
||||
background: blue
|
||||
|
||||
socket:
|
||||
foreground: crust
|
||||
background: pink
|
||||
|
||||
door:
|
||||
foreground: crust
|
||||
background: pink
|
||||
|
||||
block_device:
|
||||
foreground: sapphire
|
||||
background: surface0
|
||||
|
||||
character_device:
|
||||
foreground: pink
|
||||
background: surface0
|
||||
|
||||
broken_symlink:
|
||||
foreground: crust
|
||||
background: red
|
||||
|
||||
missing_symlink_target:
|
||||
foreground: crust
|
||||
background: red
|
||||
|
||||
setuid: {}
|
||||
|
||||
setgid: {}
|
||||
|
||||
file_with_capability: {}
|
||||
|
||||
sticky_other_writable: {}
|
||||
|
||||
other_writable: {}
|
||||
|
||||
sticky: {}
|
||||
|
||||
executable_file:
|
||||
foreground: red
|
||||
font-style: bold
|
||||
|
||||
text:
|
||||
special:
|
||||
foreground: base
|
||||
background: yellow
|
||||
|
||||
todo:
|
||||
font-style: bold
|
||||
|
||||
licenses:
|
||||
foreground: overlay2
|
||||
|
||||
configuration:
|
||||
foreground: yellow
|
||||
|
||||
other:
|
||||
foreground: yellow
|
||||
|
||||
markup:
|
||||
foreground: yellow
|
||||
|
||||
programming:
|
||||
source:
|
||||
foreground: green
|
||||
|
||||
tooling:
|
||||
foreground: teal
|
||||
|
||||
continuous-integration:
|
||||
foreground: green
|
||||
|
||||
media:
|
||||
foreground: flamingo
|
||||
|
||||
office:
|
||||
foreground: red
|
||||
|
||||
archives:
|
||||
foreground: sapphire
|
||||
font-style: underline
|
||||
|
||||
executable:
|
||||
foreground: red
|
||||
font-style: bold
|
||||
|
||||
unimportant:
|
||||
foreground: surface2
|
||||
Loading…
Add table
Add a link
Reference in a new issue