We always seem to be installing software written in the Rust programming language. There are so many useful utilities written in Rust these days. Often the best way to install Rust software is with Cargo, the Rust package manager.
Even relatively small Rust-based projects take some time to compile as a project often pulls in a ton of dependencies. Monitoring the terminal for this process to complete isn’t a boon to productivity.
For example, to build imager, a tool for automated image compression, cargo has to compile almost 400 crates. That build process takes a while to complete even on a reasonably modern PC. Step forward noti.
To be notified when the build of imager is complete, we prepend noti to cargo:
$ noti cargo install imager
When the build process is complete, noti outputs a desktop notification. In our case, that’s a GNOME notification
If all that noti did was emit desktop notifications, it wouldn’t be terribly useful. What makes noti really useful is that can trigger notifications for different services, and even monitor a process by PID. Here’s a list of the available options and how they are triggered.
noti is useful for any command-line task that’s not quick to complete. We’re regularly using it for backups made with tar.
We often use the command-line for many day-to-day tasks such as installing/updating system-wide packages. In the case of Manjaro, the project actually recommends using the command-line for large updates instead of their own GUI tool.
As we test a huge range of software many of which are available in the Arch User Repository (AUR), we use yay, an AUR helper, if only because it installs/updates both packages in the Official Repositories and the AUR. We can simply install a pre-defined set of packages using yay together with an install script.
Given the number of packages we install on our test systems, and that packages in the AUR have to be compiled, an install/update can take a long time. It’s helpful to be notified when the process is completed without having to monitor the progress.
When the packages updates are completed, noti’s notification is sent to our desktop.
noti is a very useful utility and feels at home in our Excellent utilities series.
While it supports a good range of notification services, we’d love to see this extended. Obvious candidates include Gotify, XMPP, Discord, Teams, IRC, and lots of others.
License: MIT License
Complete list of articles in this series:
|Encrypt files using the Advanced Encryption Standard
|Shell daemon created to manage processes’ IO and CPU priorities
|Next gen tree explorer and customizable launcher
|Fast application launcher
|Community driven unified cheat sheet
|Advanced clipboard manager
|Securely transfer files and folders from the command-line
|Live streaming your desktop to a web browser
|Disk usage utility with more polished presentation than the classic df
|A turbo-charged alternative to the venerable ls command
|Browse, install and manage GNOME Shell Extensions
|Wonderful alternative to the venerable find
|Kill processes quick and easy
|Quickly search and preview fonts
|File splitter with encryption and redundancy
|Simple screen recorder
|Document viewer for a wide variety of file formats
|A simple yet effective image optimization tool
|Style and grammar checker for 30+ languages
|Adaptive prompt for Bash & Zsh
|Advanced log file viewer for the small-scale; great for troubleshooting
|Like exa, lsd is a turbo-charged alternative to ls
|Simple and elegant Markdown editor
|Navigate through your bash shell history
|Formatted and highlighted view of Markdown files
|Monitors a command or process and triggers a notification
|Flexible cross-platform shell with a modern feel
|GPU process management for NVIDIA graphics cards
|Add OCR text layer to scanned PDFs
|Oh My Zsh
|Framework to manage your Zsh configuration
|Designed to simplify the management of your paperwork
|Generate, analyze, convert and manipulate colors
|PDF Mix Tool
|Perform common editing operations on PDF files
|Simple interactive filtering tool that's remarkably useful
|Recursively search directories for a regex pattern
|Sketch and take handwritten notes
|Display and control Android devices
|Simulates the traditional “sticky note” style stationery on your desktop
|Simplified and community-driven man pages
|A terminal multiplexer that offers a massive boost to your workflow
|An unofficial Evernote client with bags of potential
|Sublime application launcher
|Track the time spent on projects
|Self-hosted and privacy-focused metasearch engine
|Terminal workspace with batteries included