add: lf icons & ls tree alias with eza; remove tre-commmand package
This commit is contained in:
parent
b8183d1627
commit
670bd22ca6
5 changed files with 393 additions and 15 deletions
29
home/ooks/base/shell/lf/default.nix
Normal file
29
home/ooks/base/shell/lf/default.nix
Normal 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 ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue