This example is only for GNU/Linux users w/ systemd.
Systemd is the standard service manager used in many GNU/Linux distributions for managing system and user services. With systemd, you can set up automatic clock-in on startup. Please keep in mind that toffu
considers the following:
- Whether you have manually clocked in already.
- Whether today is a workday.
- Whether you have worked the scheduled hours.
Check out the installation instructions first.
Copy the next systemd config file in $HOME/.config/systemd/user/toffu-in.service
:
[Unit]
Description=Toffu in on startup
After=dbus.service network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/toffu in
[Install]
WantedBy=default.target
Start the service:
systemctl --user start toffu-in.service
And check if everything is running fine:
systemctl --user status toffu-in.service
Once the service is working, you can enable it on startup:
systemctl --user enable toffu-in.service