commandline

1799 readers
1 users here now

founded 2 years ago
MODERATORS
1
 
 

todo-md is a small pre-commit hook implemented in Bash that maintains TODO.md file in your repoHey! I've just released todo-md v1 🚀. Keep your tasks organized with todo-md!The pre-commit hook automatically maintains a TODO.md file by scanning your staged files for TODO: comments. You do not need complicated task trackers bloated with features anymore:) Let your code speak for itself!

Get it now: https://codeberg.org/lig/todo-md

#TODOmd #DevTools #PreCommit #Automation #OpenSource #Git #Todo​

2
 
 

cross-posted from: https://lemmy.world/post/23581846

https://gitlab.com/christosangel/tuifoop

tuifoop is a terminal puzzle game.

It is a clone of Swell Foop, written in Bash.

The aim is to remove as many cells as possible (or even all cells) from a grid. The user navigates in the grid using the navigation keys, and can select a cell to remove. Cells can be removed in clusters of more than one cells adjacent to each other. Single cells cannot be removed.

When selected, a cluster of adjacent similar cells is removed, and the remaining cells above take their place.

When a whole grid column is cleared, it collapses and the remaining columns to the right shift to fill its place.

IMPORTANT:

Most themes are based in emoji characters.

In order for the emoji characters to be rendered correctly, the user must:

  1. Make sure that emoji characters are supported in their terminal.

  2. Make sure suitable mono font is used to render the grid and the emoji backgound properly. For instance, ubuntu font can support emojis, however the font background is not rendered correctly, therefore the grid cursor (where the cursor is placd in the cell matrix) cannot be seen in the terminal window.

If a problem is encountered as this is concerned, it is easily resolved by changing to a more appropriate font through terminal application's preferences or configuration, so that the emojis as well as the grid are rendered correctly.

3
 
 

cross-posted from: https://lemmy.world/post/23313015

https://gitlab.com/christosangel/tuiplette

tuiplette is a terminal match-three game, written in Bash.

The aim is to gain points by swapping two adjacent grid cells to create rows or columns of three or more matching cells, which will disappear and allow the above cells to fall and occupy the vacant space.

When there are no moves left, the grid will be refreshed, and the game will continue until all (configured) reshuffles are used. When there are no moves left, and no reshuffles left, the game will end.

If the score is among the 10 best scores achieved, it makes it in the Top Ten Hiscores.

As far as the appearence of the game, by configuring the game accordinly, the user can select the game theme according to their liking.

The user has select theme between letters, numbers, greek, shapes, faces and blocks.

The colors selected are the configured terminal theme colors.

themes

4
21
submitted 4 weeks ago* (last edited 4 weeks ago) by aclarke@lemmy.world to c/commandline
 
 

I was recently furloughed from work, so in between job applications, I decided to polish off Sonarr support in my Managarr TUI. Thus, I'm very proud to announce the beta release of Managarr with Sonarr support!

TL;DR: Managarr is a TUI and CLI for managing your Servarr instances. As of now, it now supports both Radarr and Sonarr and all the features that are available in the UI are also available in the CLI for scripting and additional automation.

The new version has the following features:

  • Wider platform support (Windows, Mac, Linux, x86_64 and arm64)
  • View your library, downloads, blocklist, episodes
  • View details of a specific series, or episode including description, history, downloaded file info, or the credits
  • View your host and security configs from the CLI to programmatically fetch the API token, among other settings
  • Search your library
  • Add series to your library
  • Delete series, downloads, indexers, root folders, and episode files
  • Trigger automatic searches for series, seasons, or episodes
  • Trigger refresh and disk scan for series and downloads
  • Manually search for series, seasons, or episodes
  • Edit your series and indexers
  • Manage your tags
  • Manage your root folders
  • Manage your blocklist
  • View and browse logs, tasks, events queues, and updates
  • Manually trigger scheduled tasks
  • Manually trigger scheduled tasks
  • And more!

Here's some screenshots of the Sonarr tab:

Thanks to everyone's feedback when I first posted the alpha release here, this version sports a handful of additional performance improvements and platform support.

This is now technically in beta, so if anyone encounters any issues, please let me know!

5
 
 

cross-posted from: https://lemmy.world/post/23017061

https://gitlab.com/christosangel/stackabrix

stackabrix is a simple terminal game, written in Bash, where the user, against the clock and with the least moves possible, must sort the blocks according to their color, and stack them in the respective stack.

During the game, the user can move left and right, pick blocks and drop them in other stacks.

The aim is to sort the blocks, and stack them in the respectively named stacks, fast as possible, and with the least moves possible.

The play's score is the sum of the time achieved in seconds and of the moves made.

If the score is among the 10 best scores achived, it makes it in the Top Ten Highscores.

win_game

Any feedback is welcome.

6
34
submitted 2 months ago* (last edited 2 months ago) by Deebster to c/commandline
 
 

The normal complaint new Zellij users have is that it has a lot of keybindings which are likely to conflict with programs like nvim or Helix that use a lot themselves. Before, the workflow was to lock Zellij with ctrl-g which let input go through to the focused shell/program.

The new mode has most of the keybindings behind the ctrl-g lock, e.g. a new tab is ctrl-g t n (instead of ctrl-t n). You can still use alt-(cursor) for changing focus and alt-n/alt-f for a new tiled/floating pane, but all other key presses get passed along.

You can switch between default and unlock-first (non-colliding) modes so if you need those alt shortcuts you can lock everything as before.

Plus some other nice features like being able to change modifier keys while running (via the Kitty Keyboard Protocol), and autoloading the new config when you edit the file.

7
 
 

After almost 3 years of work, I've finally managed to get this project stable enough to release an alpha version!

I'm proud to present Managarr - A TUI and CLI for managing your Servarr instances! At the moment, the alpha version only supports Radarr.

Not all features are implemented for the alpha version, like managing quality profiles or quality definitions, etc.

Here's some screenshots of the TUI:

Additionally, you can use it as a CLI for Radarr; For example, to search for a new film:

managarr radarr search-new-movie --query "star wars"

Or you can add a new movie by its TMDB ID:

managarr radarr add movie --tmdb-id 1895 --root-folder-path /nfs/movies --quality-profile-id 1

All features available in the TUI are also available via the CLI.

8
 
 

Thought this was neat. TUI media player on the Hackberrypi

9
 
 

https://gitlab.com/christosangel/chaftrix

This program written in C will render the matrix effect in the terminal window in the background, while rendering an image in the foreground, allowing animation of this image in one or two dimensions.

video.png

Image rendering is done with chafa.

This program is the continuation and evolution of other projects:

https://gitlab.com/christosangel/matrix_clone

https://gitlab.com/christosangel/ascii-matrix

https://gitlab.com/christosangel/animatrix

10
 
 

Hello Lemmy,

This is an extension of the bluetuith TUI Bluetooth Manager project, which was initially developed for Linux, and is now being ported to Windows as well. This will allow the TUI to manage Bluetooth on Windows. Note that this is just a shim, the TUI will be ported to adapt with this shim later.

This tool offers a simple command-line interface and a socket-based interface (as an interprocess communication layer) to control Bluetooth Classic based functions, like:

  • Getting adapter information, performing device discovery, setting power states
  • Getting device information, pairing/unpairing a device
  • Connection to a device using various Bluetooth profiles
    • The supported profiles are A2DP, MAP, PBAP and OPP
    • Each connectable profile appears as a subcommand of the connect command
    • Every subcommand has multiple functions. View the documentation for more information.

This is currently alpha stage, so do expect bugs. Any bugs can be reported in the issue tracker.

I hope you enjoy this release, and any constructive feedback is appreciated.

11
 
 

Rook provides a secret service a-la secret-tool, keyring, or pass/gopass, except backed by a Keepass kdbx file.

The problem Rook solves is mainly in script automation, where you have aerc, offlineimap, isync, vdirsyncer, msmtp, restic, or any other cron jobs that need passwords and which are often configured to fetch these passwords from a secret service with a CLI tool. Unlike existing solutions, Rook is headless, and does not have a bespoke secrets database full of passwords that must be manually synchronized with Keepass; instead, it uses a Keepass db directly.

Rook is in the AUR and in Alpine testing; binaries are available from the project page.

From the changelog, since the last Lemmy release announcement v0.1.3 on May 20:

[v0.2.0] Fri Oct 11 09:01:03 2024 -0500

Added

  • support for password + key file credentials
  • show --no-eol option, to strip CRs after, eg, passwords

Changed

  • show matches search: it's now case insensitive

Fixed

  • successful OPEN with password wasn't clearing the one-time pin, so the DB was staying locked.
12
 
 

stmps is a fork of stmp, under active development and with several additional features. (*) items are PRs which also been accepted by the stmp project.

  • mpris support (*)
  • improved help text
  • improved playlist handling, including concurrent loading in the background
  • improved browser behavior, e.g. add all songs by an artist
  • global, server-side search
  • artist search in the browser (*)
  • TUI-less server information query
  • queue reordering
  • queue shuffling
  • randomly add songs to the queue
  • randomly add similar songs to the queue, using the Subsonic "get similar songs" feature

It's fast, keyboard driven, and a single executable; it is regularly tested against Navidrome and Gonic.

stmps can be installed by a simple go install command, and it's also in AUR as stmps.

I'm not the author, but am one of the active contributors.

13
 
 

Also available here. (Docker image)

14
15
16
17
18
19
20
16
submitted 5 months ago by mac to c/commandline
21
22
23
24
 
 

Rook provides a secret service a-la secret-tool, keyring, or pass/gopass, except backed by a Keepass v2 kdbx file.

The problem Rook solves is mainly in script automation, where you have aerc, offlineimap, isync, vdirsyncer, msmtp, restic, or any other cron jobs that need passwords and which are often configured to fetch these passwords from a secret service with a CLI tool. Unlike existing solutions, Rook is headless, and does not have a bespoke secrets database full of passwords that must be manually synchronized with Keepass; instead, it uses a Keepass db directly.

Rook is in the AUR; binaries are available from the project page.

From the changelog, since the last Lemmy release announcement (v0.0.9):

[v0.1.3] Mon May 20 17:12:25 2024 -0500

Added

  • status command, a more lightweight way of testing if a DB is open. Using this instead of info in e.g. statusbar scripts greatly reduces CPU load.
  • case-insensitive search.

Changed

  • removing some nil panics that could occur when DB is closed while a client call is being processed.

Fixed

  • a hidden bug in the OTP pin code.
  • some errors being ignored (and therefore not logged)
  • TOTP attributes getting missed by otp generator check

[v0.1.2] Fri Apr 26 15:13:55 2024 -0500

Added

  • one-time pin soft locking
  • installation instructions for distributions that have rook in a repository
  • more of the special autotype {} commands are supported (backspace, space, esc)

Changed

  • getAttr adds a little delay before typing, allowing initiator tools (like rofi) to close windows before text is output
  • cleans up code per golint/gochk

Fixed

  • an autotype bug in outputting literals

[v0.1.1] Sun Mar 17 13:44:54 2024 -0500

Added

  • the original source rook.svg
  • ability to start the rook server passing in the password via stdin pipe.

Changed

  • assets moved to directory
  • documentation referenced Keepass v4; there's no such thing, it's v2.
  • license, was missing (c) from original
  • stop trying to remove the version number from build assets
  • documentation to clarify when the master password exists as plain text, in response to questions from @d3Xt3r@lemmy.nz

[v0.1.0] Fri Mar 15 14:03:25 2024 -0500

Added

  • nfpm file
  • logo

Changed

  • clears out the password so it's not being held in plain text by the flags library.
  • some of the documentation, and fixes the duplicated v0.0.9 entry in the changelog.
  • CI build targets are more limited, but also include some distro packages
  • better README documentation

Removed

  • the monitor attribute was taken out, as rook no longer busy-polls the DB
25
5
submitted 7 months ago* (last edited 5 months ago) by Andromxda@lemmy.dbzer0.com to c/commandline
 
 

cross-posted from: https://programming.dev/post/15162087

so, about a month ago i stumbled upon the duckduckgo ai chat feature and wrote an article about how private their APIs are, and a few weeks after, a CLI client.

the thing is in a pretty mature stage now (its not like there is a lot of work to be done there tbh)

its not super private, but it is "private enough". the only thing duckduckgo has is your IP, which is usually not much unless you are on a residential connection with a dedicated IP

view more: next ›