sxalert

Simple notification system for X
Log | Files | Refs | README | LICENSE

commit 1ea0ef9752bfcbe70b64a481bbc24e350412d1e6
parent 98792f7667684676eda3ed33bc61520e327a7fd9
Author: Michael Constantine Dimopoulos <mk@mcdim.xyz>
Date:   Wed,  8 Nov 2023 00:24:59 +0000

Minor updates in documentation

Diffstat:
MREADME.md | 30+++++++++++++++++-------------
Mconfig.h | 16++++++++--------
2 files changed, 25 insertions(+), 21 deletions(-)

diff --git a/README.md b/README.md @@ -4,20 +4,24 @@ 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 -+ Dynamic screen positioning -+ Dynamic box sizing ++ Configurable & scriptable with shell ++ Dynamic screen positioning & sizing ## Dependencies -To build simple X alert, you'll need Xlib and Xft. +To build sxalert, you'll need `Xlib` and `Xft`. -## Build -In order to install, execute the following commands: +## Build & install +In order to build, execute the following commands: ``` $ git clone https://github.com/MichaelDim02/sxalert.git && cd sxalert -$ sudo make sxalert +$ make sxalert +``` +And to install on /bin: +``` +$ sudo make install ``` ## Usage @@ -25,16 +29,16 @@ You can simply run the tool with each argument being a line of text ``` $ ./sxalert "First line" "Second line" ``` -You can also set color and border width +You can also set color, border width & duration: ``` -$ ./sxalert -b 5 -t FFFFFF -g 000000 -r FFFFFF "First line" "Second line" +$ ./sxalert -d 1000 -b 5 -t FFFFFF -g 000000 -r FFFFFF "First line" "Second line" ``` -These will overwrite the defaults written in `config.h` +These will overwrite the defaults defined in `config.h` ## TODOs: ++ Read from stdin (perhaps as a patch) ++ Create a manpage + Exit by event (perhaps as a patch) -+ Titles (perhaps as a patch) -+ (?) optional daemon for positinioning ## Credit -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. +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. diff --git a/config.h b/config.h @@ -11,18 +11,18 @@ static int duration = 5000; /* in milliseconds */ /* default appearance */ -static char text_color[7] = "e1ba9b"; -static char bg_color[7] = "081019"; -static char border_color[7] = "e1ba9b"; +static char text_color[7] = "dfe3e3"; +static char bg_color[7] = "1a1616"; +static char border_color[7] = "dfe3e3"; static int border_width = 1; -static int text_x_padding = 10; +static int text_x_padding = 15; static int min_width = 300; -static int max_width = 1100; +static int max_width = 1000; static int x_offset = 20; /* pixels from right */ -static int y_offset = 50; /* pixels from top */ +static int y_offset = 40; /* pixels from top */ -const char *fontname = "DejaVu Sans Mono:size=12:antialias=true"; -static int text_height = 10; +const char *fontname = "DejaVu Sans Mono:size=13:antialias=true"; +static int text_height = 11;