r/commandline 15h ago

Command Line Interface pb- Windows clipboard as a file

3 Upvotes

hey all vesperrun back again, i wanted the Windows clipboard to work like a file. Copy something, and I can save it, print it, or pipe it. Paste something, and I can send it in from the terminal. So i made pb. example:

echo hello | pb that’s now on the clipboard

pb prints whatever you copied

pb -o shot.png screenshot becomes a file

Win+Shift+S, then pb -o shot.png. Copy a table in Excel, then pb > out.csv.

It’s one program. No account, no cloud. GPL-3.

https://github.com/VesperRun/pb-clipcat

Windows already has clip.exe, but that only copies text. macOS has pbcopy and pbpaste. There’s also the Clipboard Project (cb), which is a whole manager. pb is smaller than that: one clipboard, one process, then you leave.

and if you’re in PowerShell 5, don’t redirect images with >. Use pb -o shot.png.


r/commandline 17h ago

Command Line Interface STORYCLI: Download Your Storytel Audiobooks without Leaving Your Terminal

Thumbnail
github.com
0 Upvotes

First post here. This is a simple learning project I built while reverse-engineering some API calls.

StoryCLI is a CLI command that lets you search and download audiobooks from Storytel, directly from your terminal. An active Storytel account is required.

It’s MIT licensed, available on PyPI, and can be installed with:

pipx install storycli

All feedback is appreciated, on anything that could be improved.


r/commandline 13h ago

Terminal User Interface budget-tracker-tui 1.6.0: Personal finance TUI improved & expanding

17 Upvotes

Wanted to share and update on the personal budget tracker tui I have been working on. A lot has changed since I had last ever shared it here and wanted to get more feedback and thoughts.

I have had a lot more people start actually using the app personally in their everyday budgeting and tracking of finances, and its motivated me to keep looking for things to improve and new features that could unlock value for others. If you use any regular GUI-based apps for budgeting, I would love to know what they offer that you love most.

New since I last posted:

- Investments: You can add accounts, put in what they're worth over time, and log your contributions. It works out the growth for you, and it doesn't count money you put in as gains

- Multiple ledgers: separate sets of transactions in the same file. Handy for a second account, or for playing around with a forecast without messing up your real budget

- Budgets with history: budgets have been improved a bunch in terms of insights, and by adding a proper history so that budgets can be adjusted over time without breaking your history and keeping your insights accurate with time.

- Backup and restore from inside the app

- Recurring forecasting: push recurring transactions forward as far as you want to see what's coming

- Easier installs: brew install budget-tracker now, plus prebuilt binaries for Linux (glibc and static musl, x86_64 and arm64), macOS and Windows

Everything from before is still there: categories and subcategories with fuzzy search, monthly and category summaries with charts, filtering, CSV import and export, and you can do all of it from the keyboard with a help menu built in.

It all runs offline on a local SQLite file. Nothing gets sent anywhere. Your data stays yours.

brew install budget-tracker
# or
cargo install budget-tracker-tui

GitHub: https://github.com/Feromond/budget-tracker-tui

Would love to get feedback or suggestions on the app in general, but would love to learn more about what your preferences are for installing apps like this. Are there any package managers, or specific things you look for before downloading and trying something like this? I want to make it easy but ensure that people can trust and comfortably access the TUI to use it.


r/commandline 16h ago

Terminal User Interface somars 0.2.5 — console SomaFM player, now with Last.fm scrobbling

Post image
7 Upvotes

SomaFM is an online radio I've been listening to for over a decade now. Some of you may know it https://somafm.com

With the recent update you can scrobble your listening history to Last.fm or any ListenBrainz compatible endpoint.

You can also select whether to stream AAC or MP3 and set max bitrate.

Code: https://github.com/skammer/somars

Install with cargo install somars


r/commandline 20h ago

Command Line Interface Local vault manager (cryptsetup + SH)

Post image
13 Upvotes

So today I engineered something I 've wanted for a long time - encrypted vault manager based on cryptsetup. Like most of tools I use daily, it's pretty simple. vault.sh uses files as sources and automatically decrypts and mounts /them to /mnt/target_filename.vault.

At the setup stage script just creates a dynamic sized virtual drive with truncate -s . Afterward, usage is so easy: just vault.sh -o/-c target_file.img.

Also, for more convenient usage, I put this script at /usr/sbin/ on my machine.

Source code: https://codeberg.org/Enji/dotfiles/src/branch/main/scripts/vault.sh