From 2e3a5d3cbd3cdc61ca57b33007e84467e084c946 Mon Sep 17 00:00:00 2001 From: jornmann Date: Sun, 10 Apr 2022 09:39:01 +0300 Subject: [PATCH] Add dfmpeg plugin --- config.sh | 1 + modules.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/config.sh b/config.sh index 6536696..8d885b1 100755 --- a/config.sh +++ b/config.sh @@ -30,4 +30,5 @@ export maildir="" #module_upload "Up: " " | " #module_download "Down: " " | " #module_mail "Mail: " " | " +#module_dfmpeg "Recording!" " | " module_date "Date: " "" diff --git a/modules.sh b/modules.sh index f59eddb..ba741a7 100755 --- a/modules.sh +++ b/modules.sh @@ -76,3 +76,7 @@ module_mail() { mailoutput="$(ls ${maildir} | wc -l)" [ "$mailoutput" = "0" ] || export bar="${bar}${1}${mailoutput}${2}" } + +module_dfmpeg() { + [ -f "/tmp/dfmpeg-recording" ] || export bar="${bar}${1}${mailoutput}${2}" +}