mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
Changed lfrun to lfub
This commit is contained in:
parent
8ed0a4c78c
commit
9af9dbed8f
@ -18,5 +18,5 @@ UpgradeMenu
|
||||
# Binary OPTIONS
|
||||
#
|
||||
[bin]
|
||||
FileManager = lfrun
|
||||
FileManager = lfub
|
||||
Sudo = /bin/doas
|
||||
|
||||
@ -49,3 +49,4 @@ alias \
|
||||
weather="curl wttr.in/" \
|
||||
ww="$EDITOR ~/vimwiki/index.md" \
|
||||
z="zathura"
|
||||
lf="lfub" \
|
||||
|
||||
19
.local/bin/lfub
Executable file
19
.local/bin/lfub
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
cleanup() {
|
||||
exec 3>&-
|
||||
rm "$FIFO_UEBERZUG"
|
||||
}
|
||||
|
||||
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
||||
lf "$@"
|
||||
else
|
||||
[ ! -d "$HOME/.cache/lf" ] && mkdir --parents "$HOME/.cache/lf"
|
||||
export FIFO_UEBERZUG="$HOME/.cache/lf/ueberzug-$$"
|
||||
mkfifo "$FIFO_UEBERZUG"
|
||||
ueberzug layer -s -p json <"$FIFO_UEBERZUG" &
|
||||
exec 3>"$FIFO_UEBERZUG"
|
||||
trap cleanup EXIT
|
||||
lf "$@" 3>&-
|
||||
fi
|
||||
Loading…
Reference in New Issue
Block a user