add: lf icons & ls tree alias with eza; remove tre-commmand package

This commit is contained in:
ooks-io 2023-11-28 23:51:23 +13:00
parent b8183d1627
commit 670bd22ca6
5 changed files with 393 additions and 15 deletions

View file

@ -0,0 +1,29 @@
{ pkgs, config, ... }:
#TODO mkif wayland for previewer
{
xdg.configFile."lf/icons".source = ./icons;
programs.lf = {
enable = true;
settings = {
hidden = true;
ignorecase = true;
drawbox = true;
icons = true;
};
previewer = {
keybinding = "i";
source = "${pkgs.ctpv}/bin/ctpv";
};
extraConfig = ''
&${pkgs.ctpv}/bin/ctpv -s $id
cmd on-quit %${pkgs.ctpv}/bin/ctpv -e $id
set cleaner ${pkgs.ctpv}/bin/ctpvclear
set sixel true
'';
};
home.packages = with pkgs; [ chafa ctpv glow ];
}