Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manas140/fetch
A customizable fetch
https://github.com/manas140/fetch
configuration fetch linux posix
Last synced: 3 months ago
JSON representation
A customizable fetch
- Host: GitHub
- URL: https://github.com/manas140/fetch
- Owner: Manas140
- License: mit
- Created: 2021-07-28T10:52:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-22T04:41:26.000Z (11 months ago)
- Last Synced: 2024-10-11T02:53:46.060Z (4 months ago)
- Topics: configuration, fetch, linux, posix
- Language: Shell
- Homepage:
- Size: 3.19 MB
- Stars: 69
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fetch
A customizable fetch utility
## Install
```
git clone https://github.com/Manas140/fetch.git && cd fetch
./install.sh i
```## Usage
```
fetch [ -c config | -d default | -h ]
```## Config options
### Change default config
- Provide a new config
```
cp filepath $HOME/.config/fetch/conf
```> E.g: you can use the configs available to you in the `conf/` folder.
```
cp conf/cat $HOME/.config/fetch/conf
```- Run fetch
```
fetch
```### Use a config for an instance
```
fetch -c filepath
```### Use default config
```
fetch -d
```## Config Customization [ doc like ] TL;DR
- configuration is just a shell script which has predefined variables, and function.
Therefore, from that as base we know than we can call those variables or functions in order to print them.- configuration is stored in a function, which has a printf function
```sh
#!/bin/shconf() {
printf "
hello
\n"
}
```- functions available
```
$(Name)
$(Os)
$(Kernel)
$(Memory)
$(Shell)
$(Uptime)
$(Desktop)
```- color, and style function
```
# returns normal color red, where first argument refers to normal font style, and second to the color
$(c 0 31)
```- font style [ 1st argument ]
```
0 - normal
1 - bold
2 - light
3 - italic
4 - underline
7 - background
9 - strikethrough
```
- colors [ 2nd argument]```
31 - red
32 - green
33 - yellow
34 - blue
35 - magenta
36 - cyan
37 - white
```
> use 9 instead of 3 for secondary colors, e.g 91### At last just refer to some configs in conf/ folder and you'd get the idea