GithubHelp home page GithubHelp logo

eepykate / fet.sh Goto Github PK

View Code? Open in Web Editor NEW
366.0 7.0 21.0 301 KB

🐒 a fetch written in posix shell without any external commands (sponsored by https://git.io/kiwmi)

Home Page: https://github.com/buffet/kiwmi

License: ISC License

Shell 100.00%
posix shell fetch sh linux

fet.sh's Introduction

fet.sh

a fetch written in POSIX shell with no external commands

Installing

Arch: fet.sh-git (AUR)
Gentoo: app-misc/fetsh (GURU overlay)
KISS: fetsh (Community)
Nix: fet-sh (nixpkgs-unstable)
Alternatively, copy fet.sh to somewhere in $PATH and mark it as executable (chmod +x fet.sh)

Customization

fet.sh has a few basic configuration options using environment variables, for example:

$ info='n os wm sh n' fet.sh

Supported options are:

  • accent (0-7)
  • info
  • separator
  • colourblocks

For less trivial configuration I recommend editing the script, I tried to keep it simple.

Known Issues

MacOS, BSD, and Android don't show much info.

fet.sh's People

Contributors

9viz avatar aosync avatar eepykate avatar elkowar avatar kiranwells avatar matthiascoppens avatar mfs avatar tanish2002 avatar tempora avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fet.sh's Issues

i3blocks is detected as WM

In the WM case statement, i3blocks is considered to be a valid name:

#14 fixes it on my system, but that's only because I don't randomize my PIDs. If I were to do that, i3blocks would still show up as my WM 50% of the time.

Useless use of echo.

TL;DR:

set -- $(echo ...) is useless use of echo.


It happens three times:

There's no need of $(echo ...); the shell will expand the globbing patterns, and needs no "help".

Also, instead of three pkgs=$#'s, use only one after performing the checks (i.e., after line 136).

blocks look wierd

when i run fet.sh the blocks are wierdly displayed, they are not displayed in my colorscheme and they are very small, and have weird small spaces between them tried resizing the terminal ctrl + or - but it doesn't work

Resolution

Was wondering if there was a way to display resolution while staying POSIX sh only. This is the best I could come up with so far. May not work on all versions of xorg/configurations and could break in other ways. Perhaps someone could come up with something better. :)

https://github.com/mfs/fet.sh/tree/resolution-hack

Incorrect number of packages on Arch

Hello,

Thanks for sharing this fetch script! I have noticed one discrepancy however; it looks like the package count for Arch linux is slightly off; I don't know POSIX at all but it looks like the relevant code in fet.sh is counting all files and directories rather than just the directories of the package. On my system, my /var/lib/pacman/local/ contains a ALPM_DB_VERSION file which I don't think is a part of any singular package.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.