oops! lf-select added
This commit is contained in:
parent
17e1851397
commit
7452fd681c
2 changed files with 10 additions and 1 deletions
|
@ -15,7 +15,7 @@ cmd open ${{
|
|||
text/troff) man ./ $f;;
|
||||
text/*) $EDITOR $fx;;
|
||||
image/x-xcf|image/svg+xml) setsid gimp $f >/dev/null 2>&1 & ;;
|
||||
image/*) rotdir $f | setsid sxiv -aio 2>&1 | lf-select & ;;
|
||||
image/*) rotdir $f | setsid sxiv -aio 2>/dev/null | lf-select & ;;
|
||||
audio/*) mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $f ;;
|
||||
video/*) setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $f -quiet >/dev/null 2>&1 & ;;
|
||||
application/pdf) setsid zathura $fx >/dev/null 2>&1 & ;;
|
||||
|
|
9
.local/bin/lf-select
Executable file
9
.local/bin/lf-select
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Reads file names from stdin and selects them in lf.
|
||||
|
||||
while read -r file; do
|
||||
[ -z "$file" ] && continue
|
||||
lf -remote "send select \"$file\""
|
||||
lf -remote "send toggle"
|
||||
done
|
Loading…
Reference in a new issue