Updated clifm and fixed pager setting.

This commit is contained in:
vorboyvo 2025-01-31 11:06:22 -05:00
parent e969a5a6e8
commit 863dd4fd4c
2 changed files with 12 additions and 6 deletions

View file

@ -1,19 +1,25 @@
{pkgs, ...}:
{lib, pkgs, ...}:
let
overlay = (final: prev: {
clifm = prev.clifm.overrideAttrs (old: {
version = "1.22.2";
version = "1.23";
src = prev.fetchFromGitHub {
owner = "leo-arch";
repo = prev.clifm.pname;
rev = "53ae886";
hash = "sha256-pNKtmLMciKmzj0XOzLVgXrtwOVeMEK7Hgik0khcsWAQ=";
rev = "v1.23";
hash = "sha256-FtlLz77yy/QfRyAhJSh5juCSPCZ921sTGhuYJzCusus=";
};
});
});
file_picker = pkgs.writeScriptBin "file_picker" (builtins.readFile "${pkgs.clifm}/share/clifm/plugins/file_picker.sh");
in
{
home.packages = with pkgs.extend overlay; [ atool fzf xdragon unzip zip sshfs clifm ];
home.packages = with pkgs.extend overlay; [ atool fzf xdragon unzip zip sshfs clifm ]
++ [ file_picker ];
xdg.configFile."clifm/profiles/default/clifmrc".source = ./clifm/clifmrc;
xdg.configFile."clifm/profiles/default/mimelist.clifm".source = ./clifm/mimelist.clifm;
home.sessionVariables = {
CLIFM_TERM = "alacritty"; # TODO UNHARDCODE THIS
CLIFM_TEMPLATES_DIR = "$HOME/Modèles";
};
}

View file

@ -70,7 +70,7 @@
# >1: Run the pager whenever the amount of files in the current directory is
# greater than or equal to this value (say, 1000).
;Pager=0
Pager=1
Pager=0
# How to list files in the pager. Possible values:
# auto: use the current listing mode