All Projects → NNBnh → bfetch

NNBnh / bfetch

Licence: GPL-3.0 license
📠 Dynamic fetch displayer that SuperB

Programming Languages

shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to bfetch

coderun
⏯️ Code runner CLI that can run any languages
Stars: ✭ 23 (-79.82%)
Mutual labels:  basher, posix, bpkg
Fet.sh
🐢 a fetch written in posix shell without any external commands (sponsored by https://github.com/buffet/kiwmi, plz star)
Stars: ✭ 209 (+83.33%)
Mutual labels:  fetch, posix
fetch
Simple system info fetch for Linux
Stars: ✭ 15 (-86.84%)
Mutual labels:  fetch, posix
Mande
600 bytes convenient and modern wrapper around fetch
Stars: ✭ 154 (+35.09%)
Mutual labels:  fetch
Fetchql
GraphQL client with Fetch
Stars: ✭ 178 (+56.14%)
Mutual labels:  fetch
Next Blog
基于react(ssr)服务端框架next.js和antd-design搭建的个人博客
Stars: ✭ 214 (+87.72%)
Mutual labels:  fetch
React Fetches
🐙React Fetches a new way to make requests into your REST API's.
Stars: ✭ 253 (+121.93%)
Mutual labels:  fetch
React Native Easy App
Simpler storage, Simpler fetch, Simpler UI
Stars: ✭ 214 (+87.72%)
Mutual labels:  fetch
React Fetch Component
React component to declaratively fetch data
Stars: ✭ 153 (+34.21%)
Mutual labels:  fetch
Fetch Ponyfill
WHATWG fetch ponyfill
Stars: ✭ 209 (+83.33%)
Mutual labels:  fetch
Vue Video
vue + vue-router + vuex + (fetch->axios)
Stars: ✭ 251 (+120.18%)
Mutual labels:  fetch
React Redux
React+Redux 入门示例项目,完整的构建部署流程,可扫下方二维码在线查看
Stars: ✭ 198 (+73.68%)
Mutual labels:  fetch
Zl Fetch
A library that makes the Fetch API a breeze
Stars: ✭ 186 (+63.16%)
Mutual labels:  fetch
Svelte Boilerplate
Svelte application boilerplate with Webpack, Babel, PostCSS, Sass, Fetch, Jest, .Env, EsLint.
Stars: ✭ 216 (+89.47%)
Mutual labels:  fetch
Sinn
a blog based on of react,webpack3,dva,redux,material-ui,fetch,generator,markdown,nodejs,koa2,mongoose,docker,shell,and async/await 基于react+koa2技术栈的个人开源博客系统
Stars: ✭ 175 (+53.51%)
Mutual labels:  fetch
AxleJS
Fetch, supercharged.
Stars: ✭ 28 (-75.44%)
Mutual labels:  fetch
React Hooks Fetch
React custom hooks for data fetching with Suspense
Stars: ✭ 154 (+35.09%)
Mutual labels:  fetch
Bs Fetch
Fetch bindings for BuckleScript
Stars: ✭ 194 (+70.18%)
Mutual labels:  fetch
distrobox
Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
Stars: ✭ 4,371 (+3734.21%)
Mutual labels:  posix
go-sysconf
sysconf for Go, without using cgo
Stars: ✭ 119 (+4.39%)
Mutual labels:  posix

📢 Check out DIYfetch, the ultimate fetch tool template. It's the successor to SuperB Fetch!

License: GPL-3.0 Development completed

💡 About

SuperB Fetch (a.k.a bfetch) is a SuperB general-purpose fetch displayer written in portable sh that takes user commands output and dynamically changes how it displays output based on the terminal size.

Note Check how people rice SuperB Fetch at Bfetchporn.

📔 Story

As a Linux ricer, I like to make Neofetch automatically run when the terminal starts. This was fine until I switched to using a tiled window manager, the terminal is often too small leading to the fetch getting cropped off, even with Pfetch, the problem would appear. This has led me to create SuperB Fetch, a dynamic fetching tool with the customization spirit of Ufetch.

Neofetch Pfetch
Without SuperB Fetch Neofetch Pfetch
With SuperB Fetch Bfetch Bfetch

Features

  • Super minimum with exactly 256 lines of sh and no dependencies (if you don't count sh).
  • Super flexible:
    • Align/shift/change mode contents based on terminal size.
    • Hide some elements if terminal is too small.
  • Super customizable:
    • SuperB Fetch can take commands output and use it. By so, SuperB Fetch can display anything you want, however you want.
    • And even more config options
  • Have two mode:
Paper mode Classic mode
Paper mode Classic mode

🚀 Setup

🧾 Dependencies

📥 Installation

🔧 Manually

Option 1: using curl

curl https://raw.githubusercontent.com/NNBnh/bfetch/main/bin/bfetch > ~/.local/bin/bfetch
chmod +x ~/.local/bin/bfetch

Option 2: using git

git clone https://github.com/NNBnh/bfetch.git ~/.local/share/bfetch
ln -s ~/.local/share/bfetch/bin/bfetch ~/.local/bin/bfetch

📦 Package manager

For Arch-Linux base distro, install this AUR package:

paru -Sy superbfetch-git

For Bpkg user:

bpkg install NNBnh/bfetch

For Basher user:

basher install NNBnh/bfetch

Note If you can and want to port SuperB Fetch to other package managers, feel free to do so.

⌨️ Usage

Run SuperB Fetch in the terminal:

bfetch

⚙️ Configuration

SuperB Fetch is configured through environment variables: export BFETCH_<SETTING>="<value>"

Value Valid Default Description
BFETCH_INFO <commands> $XDG_CONFIG_HOME/bfetch/info (~/.config/bfetch/info) Read this commands output as infomation element (OS, WM, terminal, ...)
BFETCH_ART <commands> $XDG_CONFIG_HOME/bfetch/art (~/.config/bfetch/art) Read this commands output as art element (operating system logo)
BFETCH_COLOR <commands> $XDG_CONFIG_HOME/bfetch/color (~/.config/bfetch/color) Read this commands output as color element (colors strip below info)
BFETCH_TEMPORARY <path/to/file> /tmp/bfetch Temporary file's location
BFETCH_CLASSIC_MODE true|false false Make SuperB Fetch prefer classic mode when both mode are possible
BFETCH_ART_RIGHT true|false false Render art on the right when using classic mode
BFETCH_PADDING 0+ 1 Padding fetch when using classic mode
BFETCH_SEPARATOR 0+ 2 Separate info and art when using classic mode
BFETCH_PROMPT_HEIGHT 0+ 1 Acknowledge how high the shell prompt is and counter it so the prompt don't push the fetch out

SuperB Fetch will export the maximum size that an element can get:

Value Description
BFETCH_INFO_HEIGHT Maximum height of infomation element
BFETCH_INFO_WIDTH Maximum width of infomation element
BFETCH_ART_HEIGHT Maximum height of art element
BFETCH_ART_WIDTH Maximum width of art element
BFETCH_COLOR_HEIGHT Maximum height of color element
BFETCH_COLOR_WIDTH Maximum width of color element

ℹ️ Info element

SuperB Fetch looking for and execute $XDG_CONFIG_HOME/bfetch/info for info element as default, you can copy this info template with Fetchutils as a starting point and customizing.

Note Make sure the file is executable

🖼️ Art and color element

For art element and color element, take a look at NNB's ANSI collections and other textart resources.

💌 Credits

Special thanks to:






Made with ❤️ by NNB

Buy Me a Coffee

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].