Update 2024-05-16 22:06 OpenBSD/amd64-x13
This commit is contained in:
parent
694b4b83df
commit
defcd72a07
@ -49,10 +49,7 @@ DMENURUN_CMD="dmenu_run $DMENUOPTS"
|
||||
#
|
||||
|
||||
NOTIFY_CMD() {
|
||||
twmnc -i "${VAR##*/}" \
|
||||
-d 5000 \
|
||||
-t "$(date +%H:%M)" \
|
||||
-c "$@"
|
||||
( echo "$(date +%H:%M) | $1" | xnotify ) &
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -86,8 +86,8 @@ fi
|
||||
case "$(file -ib "$f")" in
|
||||
# full qualified
|
||||
application/ogg) aplay "$f"; ;;
|
||||
application/pdf) mupdf "$f"; ;;
|
||||
application/postscript) mupdf "$f"; ;;
|
||||
application/pdf) zathura "$f"; ;;
|
||||
application/postscript) zathura "$f"; ;;
|
||||
application/vnd.oasis.opendocument.*) libreoffice "$f"; ;;
|
||||
audio/mpeg) aplay "$f"; ;;
|
||||
audio/midi) timidity "$f"; ;;
|
||||
|
BIN
.bin/yt-dlp
BIN
.bin/yt-dlp
Binary file not shown.
@ -1,3 +1,17 @@
|
||||
#/bin/sh -e
|
||||
2>/dev/null 1>&2 $1 "$2" &
|
||||
sleep 1
|
||||
#/bin/sh
|
||||
|
||||
# $1 program
|
||||
# $2 file
|
||||
|
||||
set -ex
|
||||
|
||||
prog="$1"
|
||||
file="$2"
|
||||
|
||||
name=${file%.*}
|
||||
ext=${file##*.}
|
||||
|
||||
ln -f "$file" "$name.tmp.$ext"
|
||||
|
||||
$prog "$name.tmp.$ext"
|
||||
rm -f "$name.tmp.$ext"
|
||||
|
Loading…
Reference in New Issue
Block a user