sxalert - simple X alert

sxalert is a small, daemonless X11 notification utility written in C. It displays customizable text notifications and is designed to integrate naturally with Unix shell scripts.

[download] [source] [usage] [patches] [release article]

alectryon - sxalert logo

Features

Download

Latest release: 1.0

Build and install:

tar xf sxalert-1.0.tar.gz
cd sxalert-1.0
make
sudo make install

Requires X11, Xft, XRandR and their development headers.

Usage

Print a low-battery warning:

[ "$(cat /sys/class/power_supply/BAT0/capacity)" -lt 15 ] && sxalert "Battery below 15%"

Tell you if your build failed or not:

make && sxalert -t 55ff55 "Build successful" || sxalert -t ff5555 "Build failed"

Email notification that can launch neomutt in st:

sxalert -d 10000 "You have new mail" "Left click to read"; [ $? -eq 0 ] && st -e neomutt

and so much more:

cowsay you suck | sxalert -s
For more information, consult the manpage.

Patches

Notifications!

Development

sxalert is free software, distributed under the GNU General Public License, version 3 or later.

Patches, bug reports and suggestions are welcome by email at hackers@mcdim.xyz.

Copyright 2023, 2026 Michail Konstantinos Dimopoulos <mk аt mcdim.xyz>

See also: sxalert 1.0 release announcement.