waveterm: add module (#7004)

This commit is contained in:
Aguirre Matteo 2025-05-09 13:17:40 +00:00 committed by GitHub
parent 5d428b68dd
commit 8d2ee39915
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 256 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{
"bookmark@claude": {
"title": "Claude",
"url": "https://claude.ai"
},
"bookmark@github": {
"title": "GitHub",
"url": "https://github.com"
},
"bookmark@google": {
"title": "Google",
"url": "https://www.google.com"
}
}

View file

@ -0,0 +1,13 @@
{
"app:dismissarchitecturewarning": false,
"autoupdate:enabled": false,
"term:fontfamily": "JuliaMono",
"term:fontsize": 12.0,
"term:theme": "my-custom-theme",
"term:transparency": 0.5,
"window:bgcolor": "#000000",
"window:blur": true,
"window:opacity": 0.5,
"window:reducedmotion": true,
"window:showhelp": false
}

View file

@ -0,0 +1,28 @@
{
"default-dark": {
"background": "#00000077",
"black": "#757575",
"blue": "#85aacb",
"brightBlack": "#727272",
"brightBlue": "#9ab6cb",
"brightCyan": "#b7b8cb",
"brightGreen": "#a3dd97",
"brightMagenta": "#cc8ecb",
"brightRed": "#cc9d97",
"brightWhite": "#f0f0f0",
"brightYellow": "#cbcaaa",
"cmdtext": "#f0f0f0",
"cursorAccent": "",
"cyan": "#74a7cb",
"display:name": "Default Dark",
"display:order": 1,
"foreground": "#c1c1c1",
"gray": "#8b918a",
"green": "#76c266",
"magenta": "#cc72ca",
"red": "#cc685c",
"selectionBackground": "",
"white": "#c1c1c1",
"yellow": "#cbca9b"
}
}

View file

@ -0,0 +1 @@
{ waveterm-example-config = ./example-config.nix; }

View file

@ -0,0 +1,78 @@
{
programs.waveterm = {
enable = true;
settings = {
"app:dismissarchitecturewarning" = false;
"autoupdate:enabled" = false;
"term:fontsize" = 12.0;
"term:fontfamily" = "JuliaMono";
"term:theme" = "my-custom-theme";
"term:transparency" = 0.5;
"window:showhelp" = false;
"window:blur" = true;
"window:opacity" = 0.5;
"window:bgcolor" = "#000000";
"window:reducedmotion" = true;
};
themes = {
default-dark = {
"display:name" = "Default Dark";
"display:order" = 1;
black = "#757575";
red = "#cc685c";
green = "#76c266";
yellow = "#cbca9b";
blue = "#85aacb";
magenta = "#cc72ca";
cyan = "#74a7cb";
white = "#c1c1c1";
brightBlack = "#727272";
brightRed = "#cc9d97";
brightGreen = "#a3dd97";
brightYellow = "#cbcaaa";
brightBlue = "#9ab6cb";
brightMagenta = "#cc8ecb";
brightCyan = "#b7b8cb";
brightWhite = "#f0f0f0";
gray = "#8b918a";
cmdtext = "#f0f0f0";
foreground = "#c1c1c1";
selectionBackground = "";
background = "#00000077";
cursorAccent = "";
};
};
bookmarks = {
"bookmark@google" = {
url = "https://www.google.com";
title = "Google";
};
"bookmark@claude" = {
url = "https://claude.ai";
title = "Claude";
};
"bookmark@github" = {
url = "https://github.com";
title = "GitHub";
};
};
};
nmt.script = ''
assertFileExists home-files/.config/waveterm/settings.json
assertFileExists home-files/.config/waveterm/bookmarks.json
assertFileExists home-files/.config/waveterm/termthemes.json
assertFileContent home-files/.config/waveterm/settings.json \
${./cfg/settings.json}
assertFileContent home-files/.config/waveterm/bookmarks.json \
${./cfg/bookmarks.json}
assertFileContent home-files/.config/waveterm/termthemes.json \
${./cfg/termthemes.json}
'';
}