about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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
     '';