mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
theme/QoL
This commit is contained in:
25 files changed
+1036
-439
No files matched your search
@@ -1,38 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
flake.homeModules.home-nushell-colors =
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
inherit (lib.meta) getExe;
|
||||
|
||||
lsColors = pkgs.runCommand "ls_colors.txt" { } ''
|
||||
${getExe pkgs.vivid} generate gruvbox-dark-hard > $out
|
||||
'';
|
||||
in
|
||||
{
|
||||
home.packages = [ pkgs.vivid ];
|
||||
|
||||
programs.nushell.extraConfig = ''
|
||||
$env.LS_COLORS = open --raw ${lsColors}
|
||||
|
||||
$env.config.color_config.row_index = "light_yellow_bold"
|
||||
$env.config.color_config.header = "light_yellow_bold"
|
||||
|
||||
$env.config.color_config.bool = {||
|
||||
if $in {
|
||||
"light_green_bold"
|
||||
} else {
|
||||
"light_red_bold"
|
||||
}
|
||||
}
|
||||
|
||||
$env.config.color_config.string = {||
|
||||
if $in =~ "^(#|0x)[a-fA-F0-9]+$" {
|
||||
$in | str replace "0x" "#"
|
||||
} else {
|
||||
"white"
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{ ... }:
|
||||
{
|
||||
flake.homeModules.home-nushell-greeting =
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
nyi = lib.getExe config.programs.nyi.package;
|
||||
in
|
||||
{
|
||||
programs.nushell.extraConfig = ''
|
||||
if $nu.is-interactive and ($env.ZELLIJ? | is-empty) {
|
||||
^${nyi} --frames 60
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -124,10 +124,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($"($env.HOME)/.config/copetch/animated-copetch.sh" | path exists) {
|
||||
^$"($env.HOME)/.config/copetch/animated-copetch.sh"
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user