https://github.com/kringkaste/albert-time-addup
Extension for Albert to add-up time ranges into a floating-point number of hours.
https://github.com/kringkaste/albert-time-addup
albert-extensions albert-launcher albert-plugin albert-plugins albertlauncher
Last synced: 25 days ago
JSON representation
Extension for Albert to add-up time ranges into a floating-point number of hours.
- Host: GitHub
- URL: https://github.com/kringkaste/albert-time-addup
- Owner: kringkaste
- License: mit
- Created: 2025-03-28T15:21:27.000Z (25 days ago)
- Default Branch: main
- Last Pushed: 2025-03-28T21:08:29.000Z (25 days ago)
- Last Synced: 2025-03-28T22:23:09.076Z (25 days ago)
- Topics: albert-extensions, albert-launcher, albert-plugin, albert-plugins, albertlauncher
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Add up time ranges
This script is for [Albert](https://albertlauncher.github.io/) to add up multiple time ranges. The result is a floating-point number of hours.
## Query format
All times are in 24h format. The time ranges consists of pairs of time strings separated by spaces. The first time sting of the pair is the start time and the second is the end time. E.g.:
`t 12:00 12:15 13:30 14:00`
The query above starts with the trigger `t ` followed by two pairs of time ranges which will be calculated and added up: `12:00` to `12:15` and `13:30` to `14:00`.
You can modify the result by a number of minutes. Just add the string `+10m` to add 10 minutes or `-12m` to subtract 12 minutes from the result.
## Installing
Clone this repo into the Albert extension folder:
```shell
git clone [email protected]:kringkaste/albert-time-addup.git ~/.local/share/albert/python/plugins/albert-time-addup
```Restart Albert and go to the extension tab in the settings and activate the extension.