From 863dd4fd4c7e2f8877d0649e220c9a9e92e23ef8 Mon Sep 17 00:00:00 2001 From: vorboyvo Date: Fri, 31 Jan 2025 11:06:22 -0500 Subject: [PATCH] Updated clifm and fixed pager setting. --- snippets/clifm.nix | 16 +++++++++++----- snippets/clifm/clifmrc | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/snippets/clifm.nix b/snippets/clifm.nix index 75ec528..e082872 100644 --- a/snippets/clifm.nix +++ b/snippets/clifm.nix @@ -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"; + }; } diff --git a/snippets/clifm/clifmrc b/snippets/clifm/clifmrc index c950d08..8e3eac1 100644 --- a/snippets/clifm/clifmrc +++ b/snippets/clifm/clifmrc @@ -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