Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dgkim5360/noteme
A simple cli-timer with notifications for GNU/Linux Xorg and console
https://github.com/dgkim5360/noteme
c cli command-line-tool gnu-linux libnotify linux notifications timer x11
Last synced: 19 days ago
JSON representation
A simple cli-timer with notifications for GNU/Linux Xorg and console
- Host: GitHub
- URL: https://github.com/dgkim5360/noteme
- Owner: dgkim5360
- License: gpl-3.0
- Created: 2018-01-27T07:48:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T10:20:22.000Z (almost 7 years ago)
- Last Synced: 2023-08-08T12:52:32.846Z (over 1 year ago)
- Topics: c, cli, command-line-tool, gnu-linux, libnotify, linux, notifications, timer, x11
- Language: C
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
noteme
======A simple cli-timer with notifications for GNU/Linux Xorg and console ::
$ noteme -t180 "Tea Time!" -m "After 3 minutes, I shall need a cup of tea..." &
.. image:: noteme.png
Dependencies
------------noteme uses the following libraries.
* X11/Xlib.h
* libnotify/notify.hInstallation
------------::
$ git clone https://github.com/dgim5360/noteme.git
$ sudo make installTo install locally, specify the environmental variable ``DESTDIR``, e.g., ::
$ DESTDIR=~/.local make install
Usage
-----::
Usage: noteme [-chmrtu] [title]
A timer with notifications-c bool=0 deliver the note to console, instead of the graphical notification
-h print this help message
-m str="" message to be delivered
-r int=1 repeat N times
-t int=0 time in seconds
-u int=1 one of urgency levels among 0:low, 1:normal, 2:criticalExample
-------Running as a daemon (with & at the end) may be the most practical usage. ::
$ noteme -t180 "Tea Time!" -m "After 3 minutes, I shall need a cup of tea..." &
[1]4500Then it goes to the background and gives the corresponding PID. We can check the process via ``jobs`` and ``ps``. ::
$ jobs
[1]+ Running noteme -t180 "Tea Time!" -m "After 3 minutes, I shall need a cup of tea..." &
$ ps
PID TTY TIME CMD
3201 pts/0 00:00:00 bash
4500 pts/0 00:00:00 noteme
4549 pts/0 00:00:00 psThe timer can be stopped and resumed. ::
$ kill -STOP 4500
[1]+ Stopped noteme -t180 "Tea Time!" -m "After 3 minutes, I shall need a cup of tea..."
$ bg 1
[1]+ Running noteme -t180 "Tea Time!" -m "After 3 minutes, I shall need a cup of tea..." &When the timer expires, the notification pops.