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]
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.
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
cowsay you suck | sxalert -sFor more information, consult the manpage.
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.