From dd09209b7b560810658046297dd2e9c67bd8abb0 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Tue, 17 Feb 2026 14:32:08 +0100 Subject: [PATCH] Use rio as terminal --- hm/hyprland.nix | 3 +- hm/rio.nix | 78 ++++++++++++++++++++++++++++++++++++++++++++ instances/sif/hm.nix | 3 +- 3 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 hm/rio.nix diff --git a/hm/hyprland.nix b/hm/hyprland.nix index bda0e35..46d8134 100644 --- a/hm/hyprland.nix +++ b/hm/hyprland.nix @@ -8,6 +8,7 @@ in imports = [ # ./kitty.nix ./foot.nix + ./rio.nix # ./nautilus.nix ./nemo.nix ./waybar.nix @@ -215,7 +216,7 @@ in "SUPER_SHIFT_L, L, exec, hyprctl keyword general:layout dwindle" "SUPER_ALT_L, L, exec, hyprctl keyword general:layout master" - "SUPER, RETURN, exec, foot" + "SUPER, RETURN, exec, rio" "SUPER, W, killactive," "SUPER, M, exec, ${config.programs.hyprlock.package}/bin/hyprlock" "SUPER_ALT_L, Q, exit," diff --git a/hm/rio.nix b/hm/rio.nix new file mode 100644 index 0000000..780bcdf --- /dev/null +++ b/hm/rio.nix @@ -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; + }; + }; +} diff --git a/instances/sif/hm.nix b/instances/sif/hm.nix index fd3ed08..58196e6 100644 --- a/instances/sif/hm.nix +++ b/instances/sif/hm.nix @@ -114,6 +114,7 @@ # ../../hm/thunar.nix # ../../hm/twmn.nix # ../../hm/update_background.nix + # ../../hm/vim.nix # ../../hm/vivaldi.nix # ../../hm/vscode.nix ../../hm/cava.nix @@ -135,8 +136,8 @@ ../../hm/pipewire.nix ../../hm/rclone-mount-bertof.nix ../../hm/research.nix + ../../hm/rio.nix ../../hm/syncthing.nix - # ../../hm/vim.nix ../../hm/virtualization.nix ../../hm/webapp.nix ../../hm/xresources.nix