Hi,
I wanna set up a cronjob to let me know when my battery is dying.
So basically I wrote a script that plays a sound and displays a notification with herbe when the battery level is too low. It works fine when I run it from my terminal but cron fails to run herbe.
Adding export DISPLAY=:0 in the script does not make the trick.
The arch wiki also suggests to:
- set up a DBUS variable which obviously won't help
- Use xuserrun but it has systemd as dependency and I intend to run this on void
Is there another global variable I gotta set ? Or is herbe simply not sable in a cronjob ?
Thanks
Hi,
I wanna set up a cronjob to let me know when my battery is dying.
So basically I wrote a script that plays a sound and displays a notification with herbe when the battery level is too low. It works fine when I run it from my terminal but cron fails to run herbe.
Adding
export DISPLAY=:0in the script does not make the trick.The arch wiki also suggests to:
Is there another global variable I gotta set ? Or is herbe simply not sable in a cronjob ?
Thanks