项目作者: nagyation

项目描述 :
Focus notifies you of a word or task periodically to keep focus
高级语言: C
项目地址: git://github.com/nagyation/Focus.git
创建时间: 2017-05-28T02:35:54Z
项目社区:https://github.com/nagyation/Focus

开源协议:GNU General Public License v2.0

下载


Focus

A very simple program that runs as a daemon reminds you -by a notification- of what you are currently doing periodically to keep focus

Build:

Make sure you already have gtk+3 and libnotify and libappindicator-3

you can install it by:

Arch:

sudo pacman -S libnotify libappindicator-gtk3 gtk3 gsound

Fedora:

yum install libnotify-devel libappindicator-gtk3-devel gtk3-devel gsound-devel

Ubuntu:

sudo apt-get install libnotify-dev libgtk-3-dev libappindicator3-dev libgsound-dev

Focus build

$ git clone https://github.com/nagyation/Focus

$ cd Focus

$ make

$ sudo make install

Use:

-p {period in mins} : time between each notification

-d {duration in hours} : the total run duration of the program afterwhich it will exit

-t {title} : the title of the notification to recieve

-b {body} : the text body of the notification

-h {help} : show arguments

focus -h For help

focus -p {period} -d {duration of the run} -t {title} -b {text to be notified with}

Example:

focus -p 10 -d 2 -t "Hello world" -b "Hey"

Icon used is made by Nick Roach and it’s under GPL license, get it from https://www.iconfinder.com/iconsets/circle-icons-1