Some updates

This commit is contained in:
Thomas Forgione 2023-07-03 17:10:06 +02:00
parent dbd2cb88a1
commit 5db825003a
4 changed files with 14 additions and 2 deletions

8
pdf-encrypt Executable file
View File

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

View File

@ -11,7 +11,7 @@ play() {
ls $1 | sort -R | while read music; do
echo Playing $music "($index / $count)"
index=$(($index+1))
mplayer "$1/$music" < /dev/tty > /dev/null 2>&1
mpv "$1/$music"
if [ $? -ne 0 ]; then
return 1
fi

4
ppdf Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
pass thomas/key/pdf | tr -d '\n' | xclip -selection c
evince $@

2
tele
View File

@ -1,2 +1,2 @@
#!/usr/bin/env bash
xrandr --output eDP-1 --off --output HDMI-1 --mode 1280x720
xrandr --output DP-0 --off --output HDMI-0 --mode 1280x720 --primary