1
2
Fork
You've already forked term2alpha
0
Create headers for the Neovim greeter plugin alpha from terminal output
  • Lua 87.5%
  • Haskell 10.4%
  • Nix 2.1%
2025年10月31日 00:20:20 -04:00
app Don't output blank lines 2024年08月07日 20:34:04 -04:00
.gitignore Base Cabal Project 2024年04月11日 10:32:47 -04:00
default.nix Base Cabal Project 2024年04月11日 10:32:47 -04:00
example-input.txt Add example input and output files 2025年10月31日 00:20:20 -04:00
example-output.lua Add example input and output files 2025年10月31日 00:20:20 -04:00
example.png Add README 2024年04月15日 10:43:42 -04:00
flake.lock Update flake 2025年10月31日 00:20:13 -04:00
flake.nix Update Nix stuff 2024年04月15日 10:26:58 -04:00
LICENSE Add MIT LICENSE 2024年04月15日 10:30:58 -04:00
package.nix Update Nix stuff 2024年04月15日 10:26:58 -04:00
project.nix Base Cabal Project 2024年04月11日 10:32:47 -04:00
README.md Add link to catimg in README 2024年07月12日 21:52:50 -04:00
shell.nix Program is working! 2024年04月15日 10:13:39 -04:00
term2alpha.cabal Program is working! 2024年04月15日 10:13:39 -04:00

term2alpha

This is a program to create headers for Alpha, the Neovim greeter from the ANSI colored output of other terminal commands. Namely, catimg, a program for rendering images in the terminal.

Example, my alpha header

Example Usage

How I created the above example.

Generate the alpha header with the following command using catimg:

catimg -H 30 pfp.png | term2alpha > header.lua

The -H flag from catimg controls the height of it's output. term2alpha does not do any resizing, so make sure the terminal output you're feeding into it is the desired size.

The in your Neovim config, require the generated header.lua and set that as one of the sections in your alpha config:

local dashboard = require('alpha.themes.dashboard')
dashboard.config.layout[2] = require('header')
require('alpha').setup(dashboard.config)

Limitations

term2alpha has only been tested on catimg output at this time and may not work correctly on other terminal output. As of now, it only supports 24bit color codes, and ignores other ANSI control sequences.