NixOS-Configuration/common/users/cameron/home-manager/lf.nix

38 lines
749 B
Nix
Raw Normal View History

2024-01-30 04:25:16 +00:00
{ pkgs, lib, inputs, config, osConfig, ... }:
{
programs.lf = {
enable = builtins.elem pkgs.lf osConfig.environment.systemPackages;
commands = {
delete = ''''${{
set -f
printf "$fx\n"
printf "delete? [y/N] "
read ans
[ "$ans" = "y" ] && rm -rf $fx
}}'';
};
keybindings = {
x = "delete";
"<delete>" = "delete";
"<enter>" = "open";
};
settings = {
scrolloff = 8;
preview = true;
drawbox = true;
icons = true;
2024-01-30 05:14:01 +00:00
cursorpreviewfmt = "\\033[7;90m";
2024-01-30 04:25:16 +00:00
};
};
xdg.configFile."lf/icons" = {
enable = builtins.elem pkgs.lf osConfig.environment.systemPackages;
source = "${inputs.lf-icons}/etc/icons.example";
};
}