From c9ae53e23390f5d24bee5103bc580bedd41671f9 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 10 Feb 2026 18:39:42 -0500 Subject: [PATCH] ui changes, keypair rename --- home/modules/git.nix | 8 +------- home/modules/theme.nix | 6 ++++++ home/modules/ui.nix | 35 ++++++++++++++++++++--------------- 3 files changed, 27 insertions(+), 22 deletions(-) diff --git a/home/modules/git.nix b/home/modules/git.nix index be6bb5c..e12f13d 100644 --- a/home/modules/git.nix +++ b/home/modules/git.nix @@ -113,18 +113,12 @@ "github.com" = { identityFile = "~/.ssh/id_ed25519"; }; - "git-server" = { - hostname = "git.barrettruth.com"; - user = "ec2-user"; - identityFile = "~/.ssh/git-keypair-old.pem"; - }; "lightsail" = { hostname = "52.87.124.139"; user = "ec2-user"; - identityFile = "~/.ssh/git-keypair.pem"; + identityFile = "~/.ssh/lightsail-keypair.pem"; extraOptions = { SetEnv = "TERM=xterm-256color"; - KexAlgorithms = "+curve25519-sha256"; }; }; "uva-portal" = { diff --git a/home/modules/theme.nix b/home/modules/theme.nix index 1997f67..7310cff 100644 --- a/home/modules/theme.nix +++ b/home/modules/theme.nix @@ -50,12 +50,18 @@ in default = "midnight"; }; + options.palettes = lib.mkOption { + type = lib.types.attrsOf (lib.types.attrsOf lib.types.str); + readOnly = true; + }; + options.colors = lib.mkOption { type = lib.types.attrsOf lib.types.str; readOnly = true; }; config = { + palettes = palettes; colors = palettes.${config.theme}; home.pointerCursor = { diff --git a/home/modules/ui.nix b/home/modules/ui.nix index 6eebe83..136a30e 100644 --- a/home/modules/ui.nix +++ b/home/modules/ui.nix @@ -11,6 +11,16 @@ let nvidia = true; backlightDevice = "intel_backlight"; + + mkWaybarTheme = palette: '' + * { color: ${palette.fg}; } + #waybar { background: ${palette.bg}; } + #workspaces button { color: ${palette.fg}; } + #workspaces button.focused, + #workspaces button.active { background: ${palette.bgAlt}; color: ${palette.fg}; } + tooltip { color: ${palette.fg}; background-color: ${palette.bgAlt}; } + tooltip * { color: ${palette.fg}; } + ''; in { home.sessionVariables = { @@ -385,10 +395,11 @@ in }; style = '' + @import url("${config.xdg.configHome}/waybar/themes/theme.css"); + * { font-family: "Berkeley Mono", monospace; font-size: 15px; - color: ${c.fg}; } button { @@ -396,29 +407,15 @@ in border-radius: 0; } - #waybar { - background: ${c.bg}; - } - #workspaces button { padding: 0 10px; - color: ${c.fg}; - } - - #workspaces button.focused, - #workspaces button.active { - background: ${c.bgAlt}; - color: ${c.fg}; } tooltip { - color: ${c.fg}; - background-color: ${c.bgAlt}; text-shadow: none; } tooltip * { - color: ${c.fg}; text-shadow: none; } ''; @@ -535,6 +532,14 @@ in }; }; }; + xdg.configFile."waybar/themes/midnight.css".text = mkWaybarTheme config.palettes.midnight; + xdg.configFile."waybar/themes/daylight.css".text = mkWaybarTheme config.palettes.daylight; + + home.activation.linkWaybarTheme = lib.hm.dag.entryAfter [ "writeBoundary" ] '' + target="${config.xdg.configHome}/waybar/themes/theme.css" + [ -L "$target" ] || $DRY_RUN_CMD ln -sf "${config.xdg.configHome}/waybar/themes/${config.theme}.css" "$target" + ''; + xdg.configFile."X11".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nix-config/config/X11"; }