diff options
author | Yigit Sever | 2021-10-18 15:16:13 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-18 15:16:13 +0300 |
commit | 764f9cf6225b939050b2d8e70a87ef856aba22bb (patch) | |
tree | 9ee46b4171b9a6c82190caf05993e3e32c29329f /.local/bin | |
parent | 164716ab59e0defe7a603b74d98a1b3ab47af612 (diff) | |
download | dotfiles-764f9cf6225b939050b2d8e70a87ef856aba22bb.tar.gz dotfiles-764f9cf6225b939050b2d8e70a87ef856aba22bb.tar.bz2 dotfiles-764f9cf6225b939050b2d8e70a87ef856aba22bb.zip |
epub_lander: maybe notify \w cron
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/epub_lander | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/epub_lander b/.local/bin/epub_lander index 3179649..801381a 100755 --- a/.local/bin/epub_lander +++ b/.local/bin/epub_lander | |||
@@ -1,5 +1,9 @@ | |||
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | # Required to display notifications if run as a cronjob: | ||
4 | export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus | ||
5 | export DISPLAY=:0.0 | ||
6 | |||
3 | mv $HOME/down/*.epub $HOME/docs/epub_landing/ | 7 | mv $HOME/down/*.epub $HOME/docs/epub_landing/ |
4 | 8 | ||
5 | if [[ $? -ne 1 ]]; then | 9 | if [[ $? -ne 1 ]]; then |