aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2023-10-23 19:32:23 +0100
committerJustine Smithies <justine@smithies.me.uk>2023-10-23 19:32:23 +0100
commit68274d1d421a4a3662ad8b97ead197eff90cca5b (patch)
treef5a8fe26db2f6fe67bf10d9ddc2297daf07fcc03 /.config
parent095720f4d0564cc99711881a242e9d9404b18361 (diff)
Use setsid on openers
Diffstat (limited to '.config')
-rw-r--r--.config/lf/lfrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index 32f8409..c9e670c 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -42,11 +42,11 @@ set icons
# Custom Functions
cmd open ${{
- case $(file --mime-type "$f" -bL) in
- image/*) imv "$f";;
- *pdf*) zathura "$f";;
+ case $(file --mime-type $f -bL) in
+ image/*) setsid imv $f >/dev/null 2>&1 &;;
+ *pdf*) setsid zathura $fx >/dev/null 2>&1 & ;;
text/*|application/json) $EDITOR "$f";;
- video/*) mpv "$f";;
+ video/*) setsid mpv $f -quiet >/dev/null 2>&1 & ;;
*) for f in $fx; do setsid $OPENER $f 2>/dev/null & done ;;
esac
}}