Skip to content

Using herbe in a cronjob #43

Description

@TheTrveAnthony

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions