chapchap

Crates.iochapchap
lib.rschapchap
version0.2.0
sourcesrc
created_at2020-11-17 15:20:06.235105
updated_at2020-11-21 00:01:57.104132
descriptionKill distracting Apps
homepage
repositoryhttps://github.com/hamidrezakp/ChapChap/
max_upload_size
id313313
size19,947
Kaveh (hamidrezakp)

documentation

README

ChapChap, Kill distracting Apps

Install

Cargo

$ cargo install chapchap

Build from source

$ cargo install --path .

Pre-Build Binary

Soon

Config

The app first search config in $XDG_CONFIG_HOME/chapchap/config.toml. If there is not $XDG_CONFIG_HOME environment variable, it search for config file in current working directory.

The format of each App in config file is like following:

[[apps]]
name = APPNAME
enabled = true
slices = [ [13:10:00, 12:00:00], [19:00:10, 23:59:00] ] # you can write multiple time slice
black_list = false # time slices are black list or white list?
command = "mpv" # the command that application is running from

Note: slices filed consist of an array of time slices like [start, end].

There is a config.toml file in repository for example of config file.

License

Apache v2 or MIT by your choice

Commit count: 10

cargo fmt