Use rio as terminal

This commit is contained in:
Filippo Berto 2026-02-17 14:32:08 +01:00
parent c906f68765
commit dd09209b7b
No known key found for this signature in database
GPG key ID: F1D17F9BCEC62FBC
3 changed files with 82 additions and 2 deletions

78
hm/rio.nix Normal file
View file

@ -0,0 +1,78 @@
{ config, nixosConfig, ... }:
with nixosConfig.nix-rice.lib;
let
inherit (nixosConfig.nix-rice) rice;
strPalette = palette.toRGBShortHex {
inherit (rice.colorPalette) normal bright primary
background
foreground
;
dim = rice.colorPalette.dark;
};
in
{
home.packages = [ rice.font.monospace.package ];
programs.rio = {
enable = true;
settings = {
hide-cursor-when-typing = true;
theme = "rice";
editor.program = "${config.programs.helix.package}/bin/hx";
fonts = {
size = rice.font.monospace.size * 1.2;
family = "CascadiaCode";
emoji.family = "Noto Color Emoji";
};
window.opacity = rice.opacity;
};
themes.rice.colors = {
# Regular colors
inherit (strPalette) background foreground;
inherit (strPalette.normal)
black red green yellow blue magenta cyan white;
# Cursor
cursor = strPalette.normal.white;
vi-cursor = strPalette.normal.white;
# Navigation
tabs = strPalette.normal.blue;
tabs-foreground = strPalette.normal.yellow;
tabs-active = strPalette.normal.green;
tabs-active-highlight = strPalette.normal.yellow;
tabs-active-foreground = strPalette.bright.yellow;
bar = "#1b1a1a";
split = "#292527";
# Search
search-match-background = strPalette.normal.yellow;
search-match-foreground = strPalette.normal.black;
search-focused-match-background = strPalette.bright.yellow;
search-focused-match-foreground = strPalette.bright.black;
# Selection
selection-foreground = strPalette.bright.black;
selection-background = strPalette.bright.cyan;
# Dim colors
dim-black = strPalette.dim.black;
dim-red = strPalette.dim.red;
dim-green = strPalette.dim.green;
dim-yellow = strPalette.dim.yellow;
dim-blue = strPalette.dim.blue;
dim-magenta = strPalette.dim.magenta;
dim-cyan = strPalette.dim.cyan;
dim-white = strPalette.dim.white;
# Light colors
light-black = strPalette.bright.black;
light-red = strPalette.bright.red;
light-green = strPalette.bright.green;
light-yellow = strPalette.bright.yellow;
light-blue = strPalette.bright.blue;
light-magenta = strPalette.bright.magenta;
light-cyan = strPalette.bright.cyan;
light-white = strPalette.bright.white;
};
};
}