All the google results mention cron jobs. They don't work, I followed multiple guides exactly, and the script is never launched.
I just need to set the brightness to change at morning and dusk, it seems like a pretty simple task to me, but it's surprising that I can't figure it out. I use brightnessctl to control the brightness of my laptop, and it does not require sudo.
I'm running Arch Linux. Installed cronie
, in terminal I crontab -e
, and in the file I write 41 17 * * * dunstify "timer"
, which is the time a few minutes after I wrote that, as a test to see if it runs.
I save the file, I enable and start the cronie service in systemctl, then type crontab -l, and there's "no crontab for indeedwatson".
EDIT: Crontab error: no crontab For [user]
This post led me to this command sudo crontab -u indeedwatson -e
from which I can create a crontab that does show up for crontab -l
. I don't understand why. I'm using sudo to create it, but not to list them, and in any case, all the guides do not require the -u
flag, to me it seems implied by running it without sudo, it's my own user.
cron
job. – Seamus May 29 '23 at 16:07@terdon I don't need a GUI. I use redshift for blue light filter, but its brightness control does not use the actual backlight. There is some script in the arch wiki about adding a hook to fix this, but it is not working either.
– indeedwatson May 29 '23 at 21:52