Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaeldim02/sxalert
Simple X Alert
https://github.com/michaeldim02/sxalert
notifications simple x11
Last synced: about 1 month ago
JSON representation
Simple X Alert
- Host: GitHub
- URL: https://github.com/michaeldim02/sxalert
- Owner: MichaelDim02
- License: gpl-3.0
- Created: 2023-11-04T16:10:00.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-01T23:57:28.000Z (about 1 year ago)
- Last Synced: 2024-10-31T16:08:00.141Z (3 months ago)
- Topics: notifications, simple, x11
- Language: C
- Homepage:
- Size: 44.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple X Alert
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)
+ Exit by ButtonPress event## Optional D-Bus daemon hack
I've created a small Shell script called [sxalertd](https://github.com/MichaelDim02/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.## 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.