Dolda2000 GitWeb
/
utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Checked in anndl.
[utils.git]
/
planime
diff --git
a/planime
b/planime
index
0ecb770
..
854ef7f
100755
(executable)
--- a/
planime
+++ b/
planime
@@
-73,6
+73,7
@@
findfile() {
origargs=("$0" "$@")
cmdline=(mpv -fs)
debug=
origargs=("$0" "$@")
cmdline=(mpv -fs)
debug=
+log=y
unset pretend printfile
while [ "${1:0:1}" = - ]; do
unset pretend printfile
while [ "${1:0:1}" = - ]; do
@@
-80,20
+81,23
@@
while [ "${1:0:1}" = - ]; do
shift
case "$a" in
-h)
shift
case "$a" in
-h)
- echo "usage: planime [-fdhtC] [-A PLAYER-ARGS... ;] [-s PAR VAL] [--] [NAME-QUAL] [EP|.] [TYPE-QUAL]" >&2
+ echo "usage: planime [-fdhtC
L
] [-A PLAYER-ARGS... ;] [-s PAR VAL] [--] [NAME-QUAL] [EP|.] [TYPE-QUAL]" >&2
exit 0
;;
-d)
debug=y
;;
-t)
exit 0
;;
-d)
debug=y
;;
-t)
- cmdline=("${cmdline[@]}" -a
o 'alsa:device=[hw:3,7]
')
+ cmdline=("${cmdline[@]}" -a
udio-device 'alsa/hdmi:CARD=PCH,DEV=0
')
DISPLAY=:1
chwp=y
;;
-C)
pretend=y
;;
DISPLAY=:1
chwp=y
;;
-C)
pretend=y
;;
+ -L)
+ log=
+ ;;
-A)
while :; do
if [ $# -lt 1 ]; then
-A)
while :; do
if [ $# -lt 1 ]; then
@@
-258,6
+262,11
@@
elif [ -n "$printfile" ]; then
echo "$file"
else
if [ "$chwp" = y ]; then (sleep 2; randomwp) & fi
echo "$file"
else
if [ "$chwp" = y ]; then (sleep 2; randomwp) & fi
+ if [ "$log" = y ]; then
+ if [ -d $HOME/.anime ]; then
+ echo "$(date) $(basename "$file")" >>$HOME/.anime/plog
+ fi
+ fi
"${cmdline[@]}" "$file"
if [ "$nextep" = y ]; then
"${cmdline[@]}" "$file"
if [ "$nextep" = y ]; then