Utilities

Excellent Utilities: noti – notification tool

Excellent Utilities is a series of cornerstone articles highlighting essential utilities. These are small, indispensable tools, useful for anyone running a Linux machine.

Do you ever run a command from a terminal and forget to check when it’s completed or continually monitor the window for completion? Maybe you need noti. It’s a small utility written in Go that monitors a command or process and triggers a notification.

By default, noti triggers a banner notification when a command has been completed. But it can also trigger notifications for Mattermost, Telegram, Zulip, GCHat, and others. Messages can be received on your computer or phone.

Installation

We tested noti with Manjaro, an Arch-based distro. There’s a package in the Arch User Repository, which is built with the command:

$ yay -S noti

We also tested building the software from its source code. Clone the project’s GitHub repository and change into the newly created directory with the command:

$ git clone https://github.com/variadico/noti && cd noti

Build the source code and install the executable with the command:

$ make build && make install

noti lets you trigger speech notifications using the -s flag. We need to install espeak. On a Manjaro distro, we issue the command

$ yay -S espeak-ng

However, on our systems, using the -s flag doesn’t work with noti complaining that

Error: The specified espeak-ng voice does not exist.

A simple solution is to install the espeak package from the AUR.

$ yay -S espeak

To change the voice, you can create a configuration file which is in the YAML format and named noti.yaml. If not explicitly set with the --file flag, noti checks the following paths, in the following order.

./.noti.yaml
$XDG_CONFIG_HOME/noti/noti.yaml

You’ll want a configuration file if you want to use the various services that noti supports such as Slack, Telegram, Zulip and Twilio.

It’s also possible to use environment variables. For speech the environment variable is called NOTI_ESPEAK_VOICENAME.

For example, to have a female voice:

$ export NOTI_ESPEAK_VOICENAME=f1

In the next page, we’ll take you through noti and give our verdict.

Next page: Page 2 – In Operation

Pages in this article:
Page 1 – Introduction / Installation
Page 2 – In Operation / Summary


Complete list of articles in this series:

Excellent Utilities
AES CryptEncrypt files using the Advanced Encryption Standard
AnanicyShell daemon created to manage processes’ IO and CPU priorities
brootNext gen tree explorer and customizable launcher
CerebroFast application launcher
cheat.shCommunity driven unified cheat sheet
CopyQAdvanced clipboard manager
crocSecurely transfer files and folders from the command-line
DeskreenLive streaming your desktop to a web browser
dufDisk usage utility with more polished presentation than the classic df
ezaA turbo-charged alternative to the venerable ls command
Extension ManagerBrowse, install and manage GNOME Shell Extensions
fdWonderful alternative to the venerable find
fkillKill processes quick and easy
fontpreviewQuickly search and preview fonts
horcruxFile splitter with encryption and redundancy
KoohaSimple screen recorder
KOReaderDocument viewer for a wide variety of file formats
ImagineA simple yet effective image optimization tool
LanguageToolStyle and grammar checker for 30+ languages
Liquid PromptAdaptive prompt for Bash & Zsh
lnavAdvanced log file viewer for the small-scale; great for troubleshooting
lsdLike exa, lsd is a turbo-charged alternative to ls
Mark TextSimple and elegant Markdown editor
McFlyNavigate through your bash shell history
mdlessFormatted and highlighted view of Markdown files
naviInteractive cheatsheet tool
notiMonitors a command or process and triggers a notification
NushellFlexible cross-platform shell with a modern feel
nvitopGPU process management for NVIDIA graphics cards
OCRmyPDFAdd OCR text layer to scanned PDFs
Oh My ZshFramework to manage your Zsh configuration
PaperworkDesigned to simplify the management of your paperwork
pastelGenerate, analyze, convert and manipulate colors
PDF Mix ToolPerform common editing operations on PDF files
pecoSimple interactive filtering tool that's remarkably useful
ripgrepRecursively search directories for a regex pattern
RnoteSketch and take handwritten notes
scrcpyDisplay and control Android devices
StickySimulates the traditional “sticky note” style stationery on your desktop
tldrSimplified and community-driven man pages
tmuxA terminal multiplexer that offers a massive boost to your workflow
TuskAn unofficial Evernote client with bags of potential
UlauncherSublime application launcher
WatsonTrack the time spent on projects
Whoogle SearchSelf-hosted and privacy-focused metasearch engine
ZellijTerminal workspace with batteries included
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Please read our Comment FAQ before posting a comment.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments