Update 2024-05-16 22:06 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2024-05-16 22:06:24 +02:00
parent 694b4b83df
commit defcd72a07
5 changed files with 20 additions and 9 deletions

View File

@ -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 ) &
}
#

BIN
.bin/cbar

Binary file not shown.

View File

@ -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"; ;;

Binary file not shown.

View File

@ -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"