eepykate / fet.sh Goto Github PK
View Code? Open in Web Editor NEWπ’ 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
π’ 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
set -- $(echo ...)
is useless use of echo
.
It happens three times:
set -- $(echo /var/lib/pacman/local/*)
set -- $(echo /var/db/xbps/.*)
set -- $(echo /var/db/pkg/*/*)
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).
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.
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.
https://github.com/6gk/fet.sh/blob/5d432d2c67f0723a1dde41ad066d4bc2fc15282a/fet.sh#L109
Running fet.sh on KISS Linux i get a wrong package count.
dm@mm
os ~ kiss
sh ~ sh
wm ~ sowm
up ~ 06:35
kern ~ 5.4.70
pkgs ~ 2
term ~ tmux: server
β
β
β
β
β
β
β
β
β
β
β
β
Made to address the readme. It's here so that it can be motivation for others (and maybe me π³) to resolve it.
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
https://github.com/6gk/fet.sh/blob/de8e83b22cb36097ad6ec6243073417549fcd558/fet.sh#L47
*init*
filters out miniterm
which I use. *init
would also filter xinit
out which is the only reason for the filter, I think. If not just ignore this issue.
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. :)
Its name is IceWM, the icewmbg process only sets the background.
I'm using Debian sid.
doesnβt work outside of linux
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.