1 { pkgs, lib, config, ... }:
3 lfimg = pkgs.fetchFromGitHub {
6 rev = "e9154721514a1384a89f2713092c15dc77992f37";
7 sha256 = "sha256-n4H+oREay96sxenF9S02uJp5xV7ow/URaQWaV/sPsuk=";
13 #(pkgs.writeShellScriptBin "lfimg" (lib.readFile "${lfimg}/lfimg"))
14 pkgs.pistol # For previewing
15 pkgs.ranger # Only for rifle, to replace xdg-open
16 #pkgs.ueberzug # For previewing images
18 xdg.configFile."lf/lfrc".text = ''
20 #cmd open $xdg-open "$f"
28 #set cleaner ${lfimg}/cls
44 xdg.configFile."pistol/pistol.conf".text = ''
45 text/* bat --paging=never --color=always %pistol-filename%
46 #image/.* ${lfimg}/pv %pistol-filename% %pistol-extra0% %pistol-extra1% %pistol-extra2% %pistol-extra3%
48 # xdg-open is harder to configure and slower to launch than rifle
49 #xdg.mimeApps.enable = true;
50 # Initial config from https://raw.githubusercontent.com/ranger/ranger/master/ranger/config/rifle.conf
51 xdg.configFile."ranger/rifle.conf".source = ranger/rifle.conf;