about summary refs log tree commit diff stats
path: root/home-manager
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-10 17:45:52 +0100
committerene <ene@sils.li>2023-03-10 17:48:48 +0100
commitfdbc340cc024c9b13247783e20456a3161c90a5b (patch)
treea9bcd6300bc21f3ccf16c93c4712efc9518fb4d8 /home-manager
parentFeat(hm/conf/lf): Add ctpv as a previewer (diff)
downloadnixos-config-fdbc340cc024c9b13247783e20456a3161c90a5b.tar.gz
nixos-config-fdbc340cc024c9b13247783e20456a3161c90a5b.zip
Fix(hm/conf/lf): Use the real paths to ctpv
Diffstat (limited to '')
-rw-r--r--home-manager/config/lf/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/home-manager/config/lf/default.nix b/home-manager/config/lf/default.nix
index 3cfe3b40..eda82d1e 100644
--- a/home-manager/config/lf/default.nix
+++ b/home-manager/config/lf/default.nix
@@ -340,7 +340,7 @@ in {
     };
     previewer = {
       keybinding = "i";
-      source = pkgs.ctpv;
+      source = "${pkgs.ctpv}/bin/ctpv";
     };
     settings = {
       # TODO this needs to be added to nixos:
@@ -360,9 +360,9 @@ in {
     };
     # TODO remove auto quit, if it has been added
     extraConfig = ''
-      &ctpv -s $id
-      &ctpvquit $id
-      set cleaner = {pkgs.ctpv}
+      &${pkgs.ctpv}/bin/ctpv -s $id
+      cmd on-quit %${pkgs.ctpv}/bin/ctpv -e $id
+      set cleaner = ${pkgs.ctpv}/bin/ctpvclear
       set autoquit = true # close the server, after the last client exits
       set dirpreviews = true # preview directories
     '';