summaryrefslogtreecommitdiff
path: root/ar/.config
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-02-18 00:22:50 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-02-18 00:22:50 +0900
commit98e33b1baabb1685c5b7a2d5e95fee793f654762 (patch)
tree2cf0332b94e65d50fda3d9b4d9760f62f19343df /ar/.config
parent1864770d606c4aa8b0af5e88dd41c21caab8e851 (diff)
modified lf/lfrc
Diffstat (limited to 'ar/.config')
-rw-r--r--ar/.config/lf/lfrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ar/.config/lf/lfrc b/ar/.config/lf/lfrc
index 85abf5d..442c940 100644
--- a/ar/.config/lf/lfrc
+++ b/ar/.config/lf/lfrc
@@ -300,12 +300,12 @@ cmd moveto ${{
cmd mpvdir ${{
if [ -n "$fx" ]; then
set -- $fx
- setsid -f mpv --x11-name=video --really-quiet -- "$@"
+ setsid -f mpv --x11-name=video --really-quiet -- "$@" </dev/null >/dev/null 2>&1
else
for file in $(printf '%s\n' *.mp4 *.mkv *.avi *.flv *.webm *.mov *.mpg *.3gp *.ts *.rmvb | sort); do
[ -e "$file" ] && set -- "$@" "$file"
done
- [ -n "$1" ] && setsid -f mpv --x11-name=video --really-quiet -- "$@"
+ [ -n "$1" ] && setsid -f mpv --x11-name=video --really-quiet -- "$@" </dev/null >/dev/null 2>&1
fi
lf -remote "send $id :clear; unselect; save-select"
@@ -326,7 +326,7 @@ cmd open ${{
application/pgp-encrypted) $EDITOR $fx ;;
application/vnd.oasis.opendocument.text|application/vnd.oasis.opendocument.spreadsheet|application/vnd.oasis.opendocument.spreadsheet-template|application/vnd.oasis.opendocument.presentation-template|application/vnd.oasis.opendocument.presentation|application/vnd.ms-powerpoint|application/vnd.oasis.opendocument.graphics|application/vnd.oasis.opendocument.graphics-template|application/vnd.oasis.opendocument.formula|application/vnd.oasis.opendocument.database) setsid -f firefox $fx >/dev/null 2>&1 ;;
application/x-hwp|application/vnd.openxmlformats-officedocument.presentationml.presentation|application/vnd.openxmlformats-officedocument.wordprocessingml.document) setsid -f libreoffice $fx >/dev/null 2>&1 ;;
- audio/*|video/x-ms-asf) setsid -f mpv --volume=50 --x11-name=music --force-window=yes --audio-display=embedded-first --really-quiet -- "$f" </dev/null >/dev/null 2>&1 ;;
+ audio/*|video/x-ms-asf) setsid -f mpv --volume=50 --x11-name=music --force-window=yes --audio-display=embedded-first --really-quiet -- "$f" </dev/null >/dev/null 2>&1 ; lf -remote "send $id redraw" ;;
image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
image/svg+xml) display -- $f ;;
image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|avif\|tif\|ico\)\(_large\)*$" |
@@ -340,7 +340,7 @@ cmd open ${{
text/html|text/xml) lynx $fx;;
text/troff) groff -mom $fx -Tpdf | zathura - ;;
text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;;
- video/*) setsid -f mpv --x11-name=video --really-quiet -- "$f" >/dev/null 2>&1 ;;
+ video/*) setsid -f mpv --x11-name=video --really-quiet -- "$f" </dev/null >/dev/null 2>&1 ; lf -remote "send $id redraw" ;;
*) for f in $fx; do setsid -f ${OPENER:-xdg-open} $f >/dev/null 2>&1; done;;
esac
}}