a tool to control how long specific programs may run on a day. If the time contingent for a particular process is exceeded, the process is terminated immediately. shortly before the time expires, a system notification is displayed.
you should execute the asdta script in intervals — e.g. once every 60 seconds. on startup, the configuration is read in, and for all contained processes, the following steps are performed:
- checks if they are running
- if yes, then the time amount for this process is increased (by how much is configurable — e.g. if the script is executed every 60 seconds, it would make sense to increase the amount by 60 seconds as well)
- when a particular time contingent is reached, a system notification is displayed
- if the time contingent for the day is exceeded, the process is stopped immediately
after that the script terminates, but before that the current status (time amount for each process usage by day) is written into a json file. this json file will be read in again at the next program start.
The asdta daemon uses the directory %HOME/.asdta/
as workspace. The main configuration script is $HOME/.asdta/asdta-cfg.json
.
You need to create your configuration manually — You can use the asdta-cfg-example.json
as an example.
$ mkdir -p $HOME/.asdta/
$ cp asdta-cfg-example.json $HOME/.asdta/asdta-cfg.json
$ cp rokko-joker-asdta-icon.png $HOME/.asdta/