notify_touchy/README.md

40 lines
1.3 KiB
Markdown
Raw Normal View History

2018-03-29 03:06:17 +00:00
# notify\_touchy [![Build Status](https://travis-ci.org/Bandie/notify_touch.svg?branch=master)](https://travis-ci.org/Bandie/notify_touch)
2018-03-18 19:28:10 +00:00
## Purpose
2018-03-23 21:16:44 +00:00
A fork of [i3status_touchy](https://github.com/Bandie/i3status_touchy).
2018-03-18 19:28:10 +00:00
A service which checks the return code of a program/script and notifies you if it has a bad return code.
In i3status-touchy there will be a file created. This doesn't happen here anymore. Instead it uses libnotify.
## Installation
You need gcc or something similar. There is a *not finished* systemd servicefile included.
To compile and install it you may want to do the following within this project directory:
```
make
sudo make install
```
2018-03-18 19:37:23 +00:00
## Syntax
2018-03-18 19:28:10 +00:00
```
notify_touchy ( arguments )
2018-03-19 20:15:45 +00:00
It checks if a program has a specific return code within some time. If it has not a notification will appear.
2018-03-18 19:28:10 +00:00
Arguments:
-h, --help Shows this here.
-p, --program [program or script] Executes and checks this program for the return code. (Required)
-r, --return [return code] Listen to this return code. (Default: 0)
-s, --sleep [seconds] Interval of when the next check should start. (Default: 20)
-v, --verbose Show some unnecessary stuff.
```
`notify_touchy --help` will tell you the same btw.