blob: 801381a7ada6c8f2299f9b79cc3e6163a5ffe2a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env bash
# Required to display notifications if run as a cronjob:
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
export DISPLAY=:0.0
mv $HOME/down/*.epub $HOME/docs/epub_landing/
if [[ $? -ne 1 ]]; then
notify-send "Moved some epubs" "" --app-name="epub_lander" --icon="emblem_success"
fi
mv $HOME/down/*.pdf $HOME/docs/pdf_landing/
if [[ $? -ne 1 ]]; then
notify-send "Moved some pdfs" "" --app-name="epub_lander" --icon="emblem_success"
fi
|