https://github.com/tdgroot/bootonwork
https://github.com/tdgroot/bootonwork
schedule startup work
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tdgroot/bootonwork
- Owner: tdgroot
- License: gpl-3.0
- Created: 2016-12-24T16:30:19.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-28T12:36:38.000Z (about 9 years ago)
- Last Synced: 2025-04-09T01:45:50.808Z (10 months ago)
- Topics: schedule, startup, work
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Boot on work
------------
A simple wrapping script to boot multiple programs only when the current time matches your workweek's time frame. I use it to have my work related applications only start in my working schedule.
#### Installation
It's up to you how you want to install it. To call the program, run the file `bootonwork.sh` from any directory.
To define what programs you want to boot, create a file called `boot.sh`. For example:
```
#!/bin/bash
/home/timon/software/toggldesktop/TogglDesktop.sh %f &
/usr/bin/scudcloud --minimized=True &
notify-send "Booted work-related applications"
```
In my use case I need to startup some applications like Toggl or Slack. There's an example of a desktop entry(`bootonwork.desktop.sample`), it's what I use to add a startup application to Gnome.
#### Configuration
If the timeframe / working schedule does not fit your needs, you can tweak the script by adding a file called `settings.cfg` in the directory of the repository, for example:
```
[start]
day=0 # First day of your workweek, 1 is Monday - 7 is Sunday
hour=8 # The hour your workday starts
minute=30 # The minute of the hour your workday starts
[end]
day=5 # Last day of your workweek, 1 is Monday - 7 is Sunday
hour=17 # The hour your workday ends
minute=0 # The minute of the hour your workday ends
```
#### Vacation
Having a vacation? Just run `touch vacation.flag` in this directory when your vacation starts and run `rm vacation.flag` in this directory when your vacation is over. The program will detect the flag and won't boot, whatever your schedule is!