[bin] Add nyt script and clean up
This commit is contained in:
@ -33,11 +33,9 @@ hsetroot -cover $BASEDIR/$date.jpg
|
||||
|
||||
#link slim background to new image
|
||||
SLIM_BG_FILE=/usr/share/slim/themes/default/background.jpg
|
||||
if test -f "$SLIM_BG_FILE"; then
|
||||
echo "Setting Slim background image"
|
||||
rm $SLIM_BG_FILE
|
||||
ln -s $BASEDIR/$date.jpg $SLIM_BG_FILE
|
||||
fi
|
||||
echo "Setting Slim background image"
|
||||
rm $SLIM_BG_FILE
|
||||
cp $BASEDIR/$date.jpg $SLIM_BG_FILE
|
||||
|
||||
SEARX_BG_FILE=/usr/local/lib/python2.7/site-packages/searx/static/themes/courgette/img/bg-body-index.jpg
|
||||
echo "Setting Searx background image"
|
||||
|
||||
16
bin/.bin/nyt
Executable file
16
bin/.bin/nyt
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
BASEDIR="$HOME/var/media/nyt"
|
||||
DATE=$(date +"%Y-%m-%d")
|
||||
TMPFILE=/tmp/nyt.pdf
|
||||
OUTFILE=$BASEDIR/$DATE.jpg
|
||||
|
||||
if test -f "$OUTFILE"; then
|
||||
echo "NYT front page already found. Not downloading."
|
||||
else
|
||||
DATEPATH=$(date +"%Y/%m/%d")
|
||||
curl -o /tmp/nyt.pdf -L https://static01.nyt.com/images/$DATEPATH/nytfrontpage/scan.pdf
|
||||
convert -density 150 -quality 100 $TMPFILE $OUTFILE
|
||||
rm $TMPFILE
|
||||
fi
|
||||
|
||||
sxiv $OUTFILE &
|
||||
@ -1,3 +1,2 @@
|
||||
#!/bin/sh
|
||||
OUTPUT=$(script -c "muchsync mail.local > $(tty)")
|
||||
notify-send "New mail" "$OUTPUT"
|
||||
muchsync mail.local
|
||||
|
||||
BIN
fonts/.fonts/scientifica/ttf/scientifica.ttf
Normal file
BIN
fonts/.fonts/scientifica/ttf/scientifica.ttf
Normal file
Binary file not shown.
BIN
fonts/.fonts/scientifica/ttf/scientificaBold.ttf
Normal file
BIN
fonts/.fonts/scientifica/ttf/scientificaBold.ttf
Normal file
Binary file not shown.
BIN
fonts/.fonts/scientifica/ttf/scientificaItalic.ttf
Normal file
BIN
fonts/.fonts/scientifica/ttf/scientificaItalic.ttf
Normal file
Binary file not shown.
@ -68,3 +68,6 @@ Host *.cloud10
|
||||
IdentityFile ~/.ssh/ff_cloud10_rsa
|
||||
ProxyJump bastion.cloud10.15five.com
|
||||
Port 155
|
||||
|
||||
Host penobscotbaypress.com
|
||||
User root
|
||||
|
||||
Reference in New Issue
Block a user