diff options
author | Soispha <soispha@vhack.eu> | 2023-12-29 13:23:10 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-12-29 13:23:10 +0100 |
commit | 20cb9662f94fb326076d243665dceef2ff3ed199 (patch) | |
tree | 021a185238f3a473302732a6a669376a1d63104b /sys/svcs/xdg/scripts | |
parent | fix(sys/svcs/xdg/portals): Fix typo in alacritty (diff) | |
download | nixos-config-20cb9662f94fb326076d243665dceef2ff3ed199.tar.gz nixos-config-20cb9662f94fb326076d243665dceef2ff3ed199.zip |
fix(sys/svcs/xdg/portals): Set the terminal window to floating
Diffstat (limited to 'sys/svcs/xdg/scripts')
-rwxr-xr-x | sys/svcs/xdg/scripts/lf_wrapper | 12 |
1 files changed, 6 insertions, 6 deletions
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" |