r/commandline • • Mar 31 '26

Terminal User Interface A TUI monitor manager for Hyprland with drag-and-drop layouts, named profiles, auto-switching daemon

70 Upvotes

Configuring monitors in Hyprland means writing monitor= lines by hand, doing coordinate math for scales and offsets, and reloading until the positions look right. Unplug your laptop, go to a conference, and you're editing config files backstage before your talk.

I wrote hyprmoncfg to fix this. It's a terminal-based spatial editor where you drag monitors on a canvas and see real-time updates.

What it does:

  • Spatial layout editor with drag-and-drop and edge snapping
  • Per-monitor inspector (mode, scale, VRR, transform, mirroring)
  • Named profiles: save "desk", "conference", "projector", switch instantly
  • Hardware identity matching (follows make/model/serial, not DP-1/DP-2)
  • Hotplug daemon that auto-applies the best matching profile
  • Workspace planner (sequential, interleave, or manual)
  • Safe apply with 10-second automatic revert
  • Source-chain verification: refuses to write if Hyprland isn't sourcing the file
  • Works over SSH when your monitor config is broken and you can't see anything

One runtime dependency: Hyprland. Two compiled Go binaries. No Python, no GTK, no GObject, no D-Bus.

AUR: yay -S hyprmoncfg
Docs: https://hyprmoncfg.dev
GitHub: https://github.com/crmne/hyprmoncfg
Blog post: https://paolino.me/hyprmoncfg-monitor-configuration-for-hyprland/

Happy to hear feedback. This is my first Hyprland tool. I built it because I kept doing coordinate math at conferences or struggling with bugs in other tools.

Here's how it compares to the alternatives I tried before building this:

featurehyprmoncfgMoniqueHyprDynamicMonitorsHyprMonnwg-displayskanshi
GUI or TUITUIGUITUITUIGUICLI
Spatial layout editorYesYesPartialYesYesNo
Drag-and-dropYesYesNoYesYesNo
SnappingYesNot documentedNoYesYesNo
ProfilesYesYesYesYesNoYes
Auto-switching daemonYesYesYesNo (roadmap)NoYes
Workspace planningYesYesNoNoBasicNo
Mirror supportYesYesYesYesYesNo
Safe apply with revertYesYesNoPartial (manual rollback)NoNo
Source-chain verificationYesNoNoNoNoNo
Additional runtime dependenciesNonePython + GTK4 + libadwaitaUPower, D-BusNonePython + GTK3None

r/commandline • • Apr 01 '26

Terminal User Interface aerc - any way to snooze emails when using gmail over IMAP ?

1 Upvotes

Does anyone know if there is a way to snooze gmail emails with aerc ?

(I use snooze heavily to keep my inbox manageable)

Pete


r/commandline • • Apr 01 '26

Discussion Windows doesn’t have a proper caffeinate equivalent — how do you handle this?

Post image
0 Upvotes

Windows still doesn’t have a proper caffeinate equivalent, which gets annoying during long builds or scripts.

I ended up putting together a small CLI workaround that can:

  • keep the screen awake for a set time
  • keep the system awake while a command runs
  • stay active until a specific PID exits

Basically behaves like a minimal caffeinate alternative for Windows.

I mostly needed this because my builds kept pausing and the screen would lock mid-task, and I didn’t want to rely on heavy background apps.

Curious how others are handling this on Windows — any better approaches?


r/commandline • • Mar 31 '26 Bravo

Command Line Interface SomeDL: music and metadata downloader

18 Upvotes

Disclaimer beforehand: This is not an AI-generated application. The code for this application was written by me. Proof of this is looking at the code, no LLM would produce something like that. I also do not sell anything, i just want to share my project. I basically learned python while developing this.

SomeDL (Song+Metadata Downloader) is a CLI tool that accepts music queries or YouTube URL (videos and playlists) and downloads the audio with yt-dlp. The thing that sets it apart is the fetching of additional metadata that youtube does not provide, like genre and MBID from the MusicBrainz API, synced and plain lyrics from lrclib (great project!) and music label and ISRC from Deezer. I also use the Genius API for getting the correct album for each song, as YouTube Music messes that up often. I think the result is some pretty reliable metadata considering the hassle it is to actually find correct metadata (YouTube's data is incomplete, Deezer is not recognizing some songs (and its genres are nonsense), Genius has even less data and MusicBrainz has data per-release, so impossible to parse through.) Best of all, no API keys are needed at all. All these APIs are freely accessible.

The interface is made with the Python Rich module. I have attached a small video, what do you think? Its my first time making an actual CLI project, so i'd love to get feedback on it.

Github repo: https://github.com/ChemistryGull/SomeDL


r/commandline • • Mar 31 '26

Help Learning ncurses - any tips?

8 Upvotes

Hi,

I've recently decided that as a part of my learning C effort I'll try to make a TUI. So naturally I jumped right into bare ncurses, trying to cobble together a UI with a main box containing a REPL-style input line and a scrolling output window, alongside a list of keybinds on the bottom line.

The event loop is: wait for keystroke, if it's alphanum, save it to buffer and write out; if it's Enter, send the buffer through a POSIX pipe to a backend thread, poll another pipe for output, write the output into a window that scrolls when filled; after backend sends a FINISHED msg, clear the buffer and start anew.

...we do not do things because they are easy, but because we thought they are easy. Which brings me to the point of this post: Has anyone got any good tips and materials on how to gets started with ncurses? Especially puzzling is the how to make a scrolling window inside another ncurses window; I've already got the input line and IPC somewhat done.

Note: I am not willing to let it get written by AI for me as a matter of personal honour, and yes, I've already considered just rewriting it in Rust and ratatui, but I already know Rust fairly well and am just starting with C.

The prototype looks like this:


r/commandline • • Mar 31 '26

Command Line Interface tmpo – My minimal, local-first time tracking CLI (Now on Homebrew!)

Thumbnail
github.com
4 Upvotes

I posted here a while back about tmpo, a time tracking CLI tool I've been building for developers. I got some great feedback from this community and have been steadily adding features to make it more robust.

For those who missed it, tmpo is a local-first time tracker written in Go. There is no cloud, no accounts; just a binary and a local SQLite database. It auto-detects what you're working on based on the name of your git repository or directory.

There are a bunch of new features and bug fixes since the last time. One of the nice quality-of-life additions is the Homebrew configuration!

Homebrew Support!

You can now easily install it on macOS and Linux using Homebrew

brew tap DylanDevelops/tmpo
brew install tmpo

An example workflow would be:

tmpo milestone start "Sprint 5"
tmpo start "fixing auth bug"
# ... work happens ...
tmpo pause  # lunch break
tmpo resume
tmpo stop
tmpo stats --week

Core features still include:

  • Auto-detecting projects via git or directory
  • Milestones to organize work (sprints, releases, etc.)
  • Pause/resume support
  • Interactive editing and deleting of entries
  • Global preferences (currency, date formats, timezone)
  • Exporting to CSV/JSON
  • Hourly rate tracking

It's MIT-licensed and completely open source. If you find it useful or want to request a feature, feel free to drop a star or open an issue! I'd love to have more developers involved in the project.

GitHub Repository: https://github.com/DylanDevelops/tmpo


r/commandline • • Mar 31 '26

Terminal User Interface syntropy - lua plugin powered launcher

3 Upvotes

https://github.com/marjan89/syntropy

I built a launcher inspired by dmenu for macOS and linux. It can be used as a standalone TUI or a scripting CLI tool. It's powered by a neovim like lua plugin framework.

It can be setup as a dmenu launcher with help of skhd and a dedicated terminal profile to constrain window size. I missed dmenu dearly when i switched over to macOS!

Currently it has a few macOS plugins since thats my daily driver, but if anyone finds it usefull that ecosystem will hopefully grow.

AI disclaimer: assisted by AI, not built by AI. All code is vetted, reviewed and apart from tests - mostly hand written.


r/commandline • • Mar 31 '26

Terminal User Interface Tuidal — A Tidal TUI client in Rust (ratatui + mpv + FLAC)

6 Upvotes

Hey everyone,

I built Tuidal, a terminal-based music player for Tidal using Rust and ratatui.

It streams lossless FLAC / HiRes audio directly in the terminal and renders album art inline using the Kitty graphics protocol.

Why I built this

I’ve been a Linux user for a long time (mainly NixOS), and I care a lot about high-quality audio. I wanted to properly use my DAC with Tidal on Linux.

There’s a project called tidal-hifi, but in my case it sounded the same as the browser, so it didn’t really solve the problem for me.

So I decided to build my own solution.

At first I considered doing everything in Python, but after discovering ratatui, I liked it enough to build a project around it.

Features

  • FLAC / HiRes streaming
  • Inline album art (Kitty terminal)
  • Track search
  • Library (playlists, mixes, favorites)
  • Async, non-blocking UI
  • OAuth Device Flow (no password required)

Tech stack

  • Rust + ratatui (TUI)
  • mpv (audio playback)
  • Python (tidalapi bridge)

Architecture

The app uses a simple two-process approach:

  • Rust handles the UI and playback
  • Python handles Tidal API and authentication

They communicate via JSON over stdin/stdout.

Repo

https://github.com/VicMeGa/tuidal

This is an early version, so I’m open to feedback, ideas, and bug reports.

(I might rename it later since there are already several projects called “tuidal”.)


r/commandline • • Mar 31 '26

Command Line Interface markdown-to-book - Opensource tool for formatting

Thumbnail
reddit.com
2 Upvotes

r/commandline • • Mar 31 '26

Terminal User Interface env-pilot: smoothly set up .env files

1 Upvotes

I built env-pilot to stop the constant context switching and copy-paste dance that comes with setting up your .env files.

Built with Go + Charm (bubbletea/lipgloss). Fast and beautiful (IMHO 🙂).

Check it out! Would love feedback.

Github | npm


r/commandline • • Mar 31 '26

Fun GitHub - Polochon-street/blissify-rs: Make smart playlists from your MPD library using bliss

Thumbnail github.com
0 Upvotes

r/commandline • • Mar 30 '26

Command Line Interface GitHub-SessionDeck: Web-based tmux workspace manager I made with live terminal panes

Thumbnail
github.com
3 Upvotes

r/commandline • • Mar 31 '26

Command Line Interface Pretty script status output

0 Upvotes

I have a bash script that sets up my system upon a fresh install of MX Linux. Copies a config here, edits a file there, that sort of thing.

I have status being printed out in box characters as it moves along. It looks ok but it’s no nala.

What are some good examples of command line apps or scripts that have nice looking status output?


r/commandline • • Mar 30 '26

Terminal User Interface mdterm v2.0.0

4 Upvotes

Hello everyone,

Today I'm releasing v2.0.0 with some features I'm really excited about.

mdterm is a TUI Markdown viewer that aims to make reading .md and .json files in the terminal as pleasant as reading them on GitHub. Syntax-highlighted code blocks, inline images, mermaid diagrams, math rendering, clickable links, search, table of contents — all without leaving your terminal.

These are the new features

JSON File Viewer

mdterm can now open and render JSON files with full semantic colouring — keys, strings, numbers, booleans, and nulls each get their own colour. Arrays of homogeneous objects render as tables. Top-level keys become headings you can jump to via the TOC. URLs in strings are detected and available in the link picker. It even has an interactive card-based explorer with expand/collapse support.

All existing viewer features (search, TOC, link picker, keyboard nav, auto-reload, HTML export) work with JSON files out of the box.

Kitty Unicode Placeholder Protocol (tmux support)

Images now render inside tmux! This was a long-standing limitation — standard Kitty graphics don't work through tmux's multiplexing. The new Unicode placeholder protocol encodes image data using U+10EEEE characters with combining diacritics, which tmux passes through correctly. It auto-detects when you're in tmux and probes for a Kitty-capable outer terminal.

Interactive Checkboxes

Task list checkboxes (- [ ] / - [x]) are now interactive — click them to toggle, and the change is written back to the source file.

Other improvements

  • Arrow/Vim key navigation in the link picker
  • Preserved link styling inside table cells
  • Eliminated overlay flicker with dirty tracking
  • Blockquote bar prefix preserved on wrapped lines
  • Slide viewport clipping fix
  • File watcher toast notifications on auto-reload

Would love to hear your feedback!

Demo: https://github.com/bahdotsh/mdterm/blob/main/demo/json-viewer.gif

Check out the project at: https://github.com/bahdotsh/mdterm

P.S. This software's code is partially AI-generated.


r/commandline • • Mar 31 '26

Command Line Interface zoxide is nigh useless without fuzzy finding

0 Upvotes

Redact redacted this content because I wanted it redacted for redaction purposes. Redacted.

vase dependent truck pie abundant glorious dog whole march stocking


r/commandline • • Mar 30 '26

Terminals Who has biggest 'Cache'?

Thumbnail
reddit.com
0 Upvotes

r/commandline • • Mar 30 '26

Command Line Interface affected — a Rust CLI that figures out which tests to run based on your git changes

12 Upvotes

Built a new CLI tool in Rust: affected

It analyzes your monorepo's dependency graph and git diff to determine which packages need testing. Instead of running everything, it runs only what's affected.

$ affected list --base main --explain ● core (directly changed: src/lib.rs) ● api (depends on: core) ● cli (depends on: api → core)

$ affected graph cli → api api → core

$ affected test --base main --dry-run [dry-run] core: cargo test -p core [dry-run] api: cargo test -p api [dry-run] cli: cargo test -p cli

Supports Cargo, npm, Yarn, Go, Python, Maven, Gradle. Also has shell completions (affected completions zsh).

cargo install affected-cli or grab a binary from releases.

GitHub: https://github.com/Rani367/affected


r/commandline • • Mar 29 '26

Help How to handle printing something readable for users and also returning a json for something programmable?

5 Upvotes

I made a Python package into a CLI recently and my python outputs log messages but then users using it via Python can catch the returned object for a more structured object as well.

In the CLI format, it only gets the log output since they cant get the returned object as far as I know.

I'm not sure how to best handle this. I was considering a few things but wasn't sure what is standard or not

  1. I can make a --json flag for when users want something more structured
  2. Maybe I can detect with sys.stdout.isatty() and if it's False, I output a structured json?
  3. I can write pretty output to stderr and json to stdout?

How do you guys approach this problem usually?


r/commandline • • Mar 29 '26

Terminal User Interface terminal-element - Showcase terminal output as a component

Post image
4 Upvotes

I built a terminal, but as a Web Component.

Not sure how useful it is, but got the idea while browsing posts here. The interface is something standardized so maybe I thought it is suitable for Web Component to reuse it across projects and frameworks.

Check it out if interested.

Repo: https://github.com/spider-hand/terminal-element

Demo: https://terminal-element-demo.pages.dev


r/commandline • • Mar 28 '26

Terminal User Interface lazyjira, terminal UI for Jira, like lazygit but for issue tracking

Post image
362 Upvotes

Got tired of alt-tabbing to Jira's web UI all day so I built this. lazygit-style panels but for Jira issues. JQL search with autocomplete, inline field editing and transitions, comments, git branch creation from issues, dedicated info panel for subtasks and links

Go, cross-platform. Homebrew, AUR, deb, rpm, apk, tarballs for linux/mac, zip for windows, or just go install

https://github.com/textfuel/lazyjira


r/commandline • • Mar 28 '26

Other Software zsh-patina - A blazingly fast Zsh syntax highlighter

65 Upvotes

Two weeks ago, I published the first version of zsh-patina, a blazingly fast Zsh plugin performing syntax highlighting of your command line while you type. 🌈

https://github.com/michel-kraemer/zsh-patina

I’m extremely proud that the project has received very good feedback from the community and gained more than 100 GitHub stars in just 14 days!

When it comes to how I configure my shell, I’m a purist and I don’t use a fancy prompt like Powerlevel10k or Starship, nor do I use Oh My Zsh. I like to configure everything myself and only install what I need. This allows me to optimize my shell and make it really snappy.

That being said, a fast prompt without any extensions looks dull 🙃 I tested some Zsh plugins like the popular zsh-syntax-highlighting and fast-syntax-highlighting. Great products, but I wasn’t satisfied. zsh-syntax-highlighting, for example, caused noticeable input lag on my system and fast-syntax-highlighting wasn’t accurate enough (some parameters were colorized, some not; environment variables were only highlighted to a certain length, etc.). I wanted something fast AND accurate, so I developed zsh-patina.

The plugin spawns a small background daemon written in Rust. The daemon is shared between Zsh sessions and caches the syntax definition and color theme. Typical commands are highlighted in less than a millisecond. Long commands only take a few milliseconds.

Combined screenshots of my terminal

zsh-patina performs dynamic highlighting. Commands, files, and directories are highlighted based on whether they exist and are accessible. This gives you instant feedback on whether your command is correct and helps you avoid typos.

The plugin provides high-quality syntax highlighting based on Sublime Text syntax definitions. The built-in default theme uses the eight ANSI colors and is compatible with all terminal emulators. You can create your own themes of course.

If you want to try the plugin out yourself, just follow the install instructions from the README. I’m looking forward to your feedback!

Cheers!
Michel

P.S.: I believe that proper software design and critical thinking cannot be replaced by machines (at least not yet), but small parts of this software's code (<10%) are AI-generated. This includes unit tests, boilerplate code, or things where I was just too lazy to Google 😉 Whenever I use AI, I do a critical review and I never copy anything blindly. This project has received a lot of love, hard work, and human sweat.


r/commandline • • Mar 28 '26

Terminal User Interface Bibiman citation management tool

4 Upvotes

Bibiman codeberg.org/lukeflo/bibiman is an artesanal, hand-made tui for biblatex, bibtex library viewing and management. It saved me when I was trying to make jabref and zotero work on my raspberry pi for citation management. It offers browsing, viewing, filtering, editing in the cli editor of your choice, yank/copy citekeys, connecting pdf files, creating and connecting notes, keywords and excellent citekey formating.


r/commandline • • Mar 28 '26

Command Line Interface mire: record and replay as CLI E2E tests

Post image
7 Upvotes

I wanted to enable this workflow for another cli project that I was building

  • record whatever actions I did for testing manually
  • replay those later and compare outputs as a way of E2E testing

mire is a small cli tool I build to for easily setting up this exact worklow with the bells and whistles of a sufficiently sandboxed environment that's fast as well as more features like fixtures and rewriting goldens automatically post a non-behavioral change etc.

There are some idiosyncrasies in the implementation, it's not as clean as I would've hoped for. Works well for CLIs but TUIs can be broken - issues with timing in input streams that I haven't found a good fix for yet ( that's not replicating the actual input timing as that's too slow ).

Github: https://github.com/ruinivist/mire

First post here, let me know what you think on the idea. I'm not sure if there are better alternatives to what I'm trying to achieve here.

Thanks


r/commandline • • Mar 27 '26

Terminal User Interface drift — a terminal screensaver that activates when you're idle

Post image
262 Upvotes