Add lsd colorschemes

This commit is contained in:
Jakob Lechner 2025-06-12 11:33:26 +02:00
parent 1755c502f4
commit 2be0fee327
6 changed files with 74 additions and 5 deletions

View file

@ -23,10 +23,5 @@
wget
yt-dlp
]);
programs.lsd = {
enable = true;
enableFishIntegration = false;
};
};
}

View file

@ -19,6 +19,7 @@
./gui.nix
./jameica.nix
./kicad.nix
./lsd
./mpv.nix
./mute-indicator.nix
./mycli

View file

@ -51,6 +51,12 @@ let
then [ "/usr/bin/env" "gsettings" "set" "org.gnome.desktop.interface" "gtk-theme" "Adwaita-%scheme%" ]
else null;
}
{
dir = "~/.config/lsd";
light = "colors-light.yaml";
dark = "colors-dark.yaml";
target = "colors.yaml";
}
];
dynamic-colors = pkgs.writers.writePython3Bin "dynamic-colors" { } ''
import json

View file

@ -0,0 +1,27 @@
user: 125
group: 136
permission:
read: 166
write: 64
exec: 160
exec-sticky: 125
no-access: 245
octal: 37
acl: 37
context: 245
date:
hour-old: 64
day-old: 136
older: 240
size:
none: 160
small: 61
medium: 37
large: 33
inode:
valid: 64
invalid: 160
links:
valid: 61
invalid: 240
tree-edge: 245

View file

@ -0,0 +1,27 @@
user: 125
group: 136
permission:
read: 166
write: 64
exec: 160
exec-sticky: 125
no-access: 234
octal: 37
acl: 37
context: 235
date:
hour-old: 64
day-old: 136
older: 240
size:
none: 160
small: 61
medium: 37
large: 33
inode:
valid: 61
invalid: 160
links:
valid: 61
invalid: 235
tree-edge: 235

View file

@ -0,0 +1,13 @@
{ lib, nixosConfig, ... }:
lib.mkIf nixosConfig.jalr.workstation.enable {
programs.lsd = {
enable = true;
enableFishIntegration = false;
settings = {
color.theme = "custom";
};
};
xdg.configFile."lsd/colors-light.yaml".source = ./colors-light.yaml;
xdg.configFile."lsd/colors-dark.yaml".source = ./colors-dark.yaml;
}