about summary refs log tree commit diff stats
path: root/sys/svcs
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-12-29 13:23:10 +0100
committerSoispha <soispha@vhack.eu>2023-12-29 13:23:10 +0100
commit20cb9662f94fb326076d243665dceef2ff3ed199 (patch)
tree021a185238f3a473302732a6a669376a1d63104b /sys/svcs
parentfix(sys/svcs/xdg/portals): Fix typo in alacritty (diff)
downloadnixos-config-20cb9662f94fb326076d243665dceef2ff3ed199.tar.gz
nixos-config-20cb9662f94fb326076d243665dceef2ff3ed199.zip
fix(sys/svcs/xdg/portals): Set the terminal window to floating
Diffstat (limited to 'sys/svcs')
-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"