I'm trying to run some commands upon every system boot in cronjob but it doesn't seem to be working, so far i have installed cron in Arch, enabled and started it with
systemctl enable cronie
systemctl start cronie
Then i went into a new crontab using
crontab -e
And added the following lines:
@reboot /bin/xbindkeys
@reboot /bin/setxkbmap -layout gb
I need these two commands to run on startup ever time, the first command is to start xbindkeys, and the second is to set my keyboard layout to GB layout. When i rebooted my system the crontab didn't seem to do anything, id appreciate if i can get some help, Thanks!
EDIT: Here is the output of:
journalctl -xe | grep CRON
Aug 26 14:30:48 archlinux crond[329]: (CRON) STARTUP (1.5.5)
Aug 26 14:30:48 archlinux crond[329]: (CRON) INFO (Syslog will be used instead of sendmail.)
Aug 26 14:30:48 archlinux crond[329]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 5% if used.)
Aug 26 14:30:48 archlinux crond[329]: (CRON) INFO (running with inotify support)
Aug 26 14:30:49 archlinux CROND[423]: (user1) CMD (/bin/xbindkeys)
Aug 26 14:30:49 archlinux CROND[424]: (user1) CMD (/bin/setxkbmap -layout gb)
Aug 26 14:30:49 archlinux CROND[348]: (user1) CMDOUT (Cannot open display "default display")
Aug 26 14:30:49 archlinux CROND[348]: pam_unix(crond:session): session closed for user user1
Aug 26 14:30:50 archlinux CROND[349]: pam_unix(crond:session): session closed for user user1