Some updates
This commit is contained in:
parent
dbd2cb88a1
commit
5db825003a
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
password=$(pass thomas/key/pdf)
|
||||||
|
|
||||||
|
for i in $@; do
|
||||||
|
echo >&2 "Encrypting $i"
|
||||||
|
qpdf --encrypt "$password" "$password" 256 -- "$i" --replace-input
|
||||||
|
done
|
2
playlist
2
playlist
|
@ -11,7 +11,7 @@ play() {
|
||||||
ls $1 | sort -R | while read music; do
|
ls $1 | sort -R | while read music; do
|
||||||
echo Playing $music "($index / $count)"
|
echo Playing $music "($index / $count)"
|
||||||
index=$(($index+1))
|
index=$(($index+1))
|
||||||
mplayer "$1/$music" < /dev/tty > /dev/null 2>&1
|
mpv "$1/$music"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
pass thomas/key/pdf | tr -d '\n' | xclip -selection c
|
||||||
|
evince $@
|
Loading…
Reference in New Issue