about summary refs log tree commit diff stats
path: root/sys/svcs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sys/svcs/xdg/default.nix1
-rwxr-xr-xsys/svcs/xdg/scripts/lf_wrapper12
2 files changed, 7 insertions, 6 deletions
diff --git a/sys/svcs/xdg/default.nix b/sys/svcs/xdg/default.nix
index 60ee2a00..73d7efc3 100644
--- a/sys/svcs/xdg/default.nix
+++ b/sys/svcs/xdg/default.nix
@@ -19,6 +19,7 @@
               dependencies = with pkgs; [
                 lf
                 alacritty
+                bash
               ];
             }}/bin/lf_wrapper";
           };
diff --git a/sys/svcs/xdg/scripts/lf_wrapper b/sys/svcs/xdg/scripts/lf_wrapper
index 9277f2d4..7a508d39 100755
--- a/sys/svcs/xdg/scripts/lf_wrapper
+++ b/sys/svcs/xdg/scripts/lf_wrapper
@@ -26,11 +26,11 @@ save="$3"
 recommended_path="$4"
 out="$5"
 
-echo > /tmp/stdout
-echo > /tmp/stderr
-
-exec 1>> /tmp/stdout
-exec 2>> /tmp/stderr
+# echo > /tmp/stdout
+# echo > /tmp/stderr
+#
+# exec 1>> /tmp/stdout
+# exec 2>> /tmp/stderr
 
 cmd="$(command -v lf)"
 termcmd="${TERMINAL:-$(command -v alacritty)}"
@@ -68,7 +68,7 @@ else
     set -- -selection-path="$out" -command='set promptfmt "Select file (open file to select it) %S \033[32;1m%u@%h\033[0m:\033[34;1m%d\033[0m\033[1m%f\033[0m"'
 fi
 
-"$termcmd" -e "$cmd" "$@"
+"$termcmd" --title 'floating please' -e "$cmd" "$@"
 
 if [ "$save" = "1" ] && [ ! -s "$out" ]; then
     rm "$recommended_path"