-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
84 lines (66 loc) · 2.51 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
~-.
,,,; ~-.~-.~-
(.../ ~-.~-.~-.~-.~-.
<} o~`, ~-.~-.~-.~-.~-.~-.
(/ \ ~-.~-.~-.~-.~-.~-.~-.
; \ ~-.~-.~-.~-.~-.~-.~-.
; {_.~-.~-.~-.~-.~-.~-.~
;: .-~` ~-.~-.~-.~-.~-.
;.: :' ._ ~-.~-.~-.~-.~-
;::`-. '-._ ~-.~-.~-.~-
;::. `-. '-,~-.~-.~-.
';::::.`''-.-'
';::;;:,:'
'||"
/ |
~` ~"'mic
'|| .
.... ... ... .... || .... ... .. .||.
||. ' '|..' '' .|| || .|...|| ||' '' ||
. '|.. .|. .|' || || || || ||
|'..|' .| ||. '|..'|' .||. '|...' .||. '|.'
Simple X Alert
____________________________________________________________
| version 0.1 | language C | lines of code <200 | binaries 1 |
Simple notification system for X that works without a daemon. This is mainly for
personal use, but I'll be glad to support whoever else wants to use it.
Currently in development.
Features
========
+ Alert & exit -- no daemon
+ Freetype scalable fonts
+ UTF-8 support
+ Configurable & scriptable with shell
+ Dynamic screen positioning & sizing
Dependencies
============
To build sxalert, you'll need a c99 compiler, make, Xlib and Xft.
Build & install
===============
In order to build, execute the following commands:
$ git clone https://github.com/MichaelDim02/sxalert.git && cd sxalert
$ make sxalert
And to install on /bin:
$ sudo make install
Usage
=====
You can simply run the tool with each argument being a line of text
$ ./sxalert "First line" "Second line"
You can also set color, border width & duration:
$ ./sxalert -d 1000 -b 5 -t FFFFFF -g 000000 -r FFFFFF "First line" "Second line"
These will overwrite the defaults defined in `config.h`
TODOs
=====
+ Read from stdin (perhaps as a patch)
+ [DONE] Exit by ButtonPress event
Optional D-Bus daemon hack
==========================
I've created a small Shell script called sxalertd that can run as a daemon to
read the D-Bus and use sxalert to draw the notifications. The script & parsing
method are a little hacky but work quite well.
(https://github.com/MichaelDim02/sxalertd)
Credit
======
The logo is the Alectryon! The rooster image is by Leys, Thomson W. from the
1883 book "Brett's colonists' guide and cyclopaedia" for New Zealand settlers.
The font is Byzantine, and the logo was created in GIMP.