blob: 19e0a1c68c7deb9cc3548b2ff2ca3d5d3db3e7e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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
|