Update README.md, update stats, update ignore lists
- Update formatting for README.md - Update stats using .gitattributes - Remove obsolete entries from .gitignore - Use Git LFS for binary files (images), require re-commit binary assets
This commit is contained in:
parent
c204403404
commit
e2acd2f6dc
14
.gitattributes
vendored
14
.gitattributes
vendored
@ -1 +1,15 @@
|
|||||||
|
# .gitattributes
|
||||||
|
|
||||||
|
# Aliases
|
||||||
|
[attr]lfs filter=lfs diff=lfs merge=lfs -text
|
||||||
|
# EOL
|
||||||
|
* text=auto eol=lf
|
||||||
|
# LFS
|
||||||
|
*.png lfs
|
||||||
|
# Stats
|
||||||
|
*.git* linguist-language=Shell
|
||||||
|
*.sum linguist-generated
|
||||||
|
*.toml linguist-detectable
|
||||||
|
*.yml linguist-language=YAML
|
||||||
|
*.yaml linguist-detectable
|
||||||
*.png filter=lfs diff=lfs merge=lfs -text
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|||||||
12
.gitignore
vendored
12
.gitignore
vendored
@ -1,16 +1,12 @@
|
|||||||
./idea
|
# .gitignore
|
||||||
|
|
||||||
idea/*
|
idea/*
|
||||||
/main
|
/main
|
||||||
result/
|
result*
|
||||||
*result*
|
|
||||||
./src
|
./src
|
||||||
./pkg
|
./pkg
|
||||||
./goGoFetch
|
./goGoFetch
|
||||||
/gogofetch-git-r14.ff1fcf9-1-x86_64.pkg.tar.zst
|
/gogofetch-git-r14.ff1fcf9-1-x86_64.pkg.tar.zst
|
||||||
./gogofetch-git
|
./gogofetch-git
|
||||||
/.idea/awesomeProject.iml
|
|
||||||
/.idea/go.imports.xml
|
|
||||||
/.idea/vcs.xml
|
|
||||||
/.idea/workspace.xml
|
|
||||||
/goGoFetch
|
/goGoFetch
|
||||||
/gogofetch
|
/gogofetch
|
||||||
|
|||||||
111
README.md
111
README.md
@ -1,91 +1,86 @@
|
|||||||
# Fetch tool for linux written in Go with image support
|
# goGoFetch
|
||||||
|
|
||||||

|
Fetch tool for Linux written in Go with image support
|
||||||
|
|
||||||
# Install
|

|
||||||
you can get gogofetch on AUR!
|
|
||||||
```bash
|
|
||||||
yay -S gogofetch-git
|
|
||||||
```
|
|
||||||
also chafa is dependency for gogofetch
|
|
||||||
|
|
||||||
# Usage
|
## Usage
|
||||||
basic usage:
|
|
||||||
```bash
|
```sh
|
||||||
gogofetch
|
gogofetch
|
||||||
```
|
|
||||||
to show custom image :
|
# show custom image
|
||||||
```bash
|
|
||||||
gogofetch -l path
|
gogofetch -l path
|
||||||
```
|
|
||||||
If the custom image is a GIF, it will animate and gogofetch will keep running until you stop it (Ctrl+C).
|
# If the custom image is a GIF, it will animate and gogofetch will keep running until you stop it (Ctrl+C).
|
||||||
to show custom image and set custom width:
|
# to show custom image and set custom width:
|
||||||
```bash
|
|
||||||
gogofetch -l path -w 250
|
gogofetch -l path -w 250
|
||||||
```
|
|
||||||
to place logo on the left (default) or right:
|
# place logo on the left (default) or right:
|
||||||
```bash
|
|
||||||
gogofetch -p left
|
gogofetch -p left
|
||||||
gogofetch -p right
|
gogofetch -p right
|
||||||
```
|
|
||||||
to show help message:
|
# help
|
||||||
```bash
|
|
||||||
gogofetch -h
|
gogofetch -h
|
||||||
```
|
```
|
||||||
|
|
||||||
config file is created at `~/.config/gogofetch/config.toml`, all parameters are described in config file.
|
> [Note!]
|
||||||
|
> Configuration file is created at `~/.config/gogofetch/config.toml`.
|
||||||
|
|
||||||
# Nix
|
## Install
|
||||||
credits to melvi for flake
|
|
||||||
|
|
||||||
to build with nix:
|
### Arch Linux
|
||||||
```bash
|
|
||||||
git clone https://codeberg.org/nekohepott/goGoFetch
|
|
||||||
cd goGoFetch
|
|
||||||
nix build
|
|
||||||
```
|
|
||||||
to run with nix:
|
|
||||||
```
|
|
||||||
nix run --refresh git+https://codeberg.org/nekohepott/goGoFetch
|
|
||||||
```
|
|
||||||
to install with nixos:
|
|
||||||
|
|
||||||
1. Add to inputs:
|
```sh
|
||||||
|
yay -S gogofetch-git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Also `chafa` is dependency for goGoFetch
|
||||||
|
|
||||||
|
### NixOS
|
||||||
|
|
||||||
|
```nix
|
||||||
|
# add to inputs
|
||||||
goGoFetch.url = "git+https://codeberg.org/nekohepott/goGoFetch";
|
goGoFetch.url = "git+https://codeberg.org/nekohepott/goGoFetch";
|
||||||
```
|
|
||||||
2. Add to packages (system-wide or home-manager):
|
# add to packages (system-wide or home-manager)
|
||||||
```
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
inputs.goGoFetch.packages.${pkgs.system}.default
|
inputs.goGoFetch.packages.${pkgs.system}.default
|
||||||
];
|
];
|
||||||
```
|
|
||||||
or
|
# or
|
||||||
```
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
inputs.goGoFetch.packages.${pkgs.system}.default
|
inputs.goGoFetch.packages.${pkgs.system}.default
|
||||||
];
|
];
|
||||||
```
|
```
|
||||||
3. Run rebuild and then you can run fetch with *gogofetch* command
|
|
||||||
|
|
||||||
|
```sh
|
||||||
# Build
|
# run rebuild and then you can run fetch
|
||||||
to build:
|
gogofetch
|
||||||
```
|
```
|
||||||
git clone https://codeberg.org/nekohepott/goGoFetch
|
|
||||||
cd goGoFetch
|
## Build
|
||||||
|
|
||||||
|
### Linux
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://codeberg.org/nekohepott/goGoFetch && cd goGoFetch
|
||||||
go build -o gogofetch ./src
|
go build -o gogofetch ./src
|
||||||
```
|
|
||||||
and run:
|
|
||||||
```
|
|
||||||
./gogofetch
|
./gogofetch
|
||||||
```
|
```
|
||||||
|
|
||||||
# Some screenshots
|
### Nix Flake
|
||||||
|
|
||||||
 alacritty
|
Credits to `melvi` for Nix flake.
|
||||||
|
|
||||||
 foot
|
```sh
|
||||||
|
git clone https://codeberg.org/nekohepott/goGoFetch && cd goGoFetch
|
||||||
|
nix build
|
||||||
|
nix run --refresh git+https://codeberg.org/nekohepott/goGoFetch
|
||||||
|
```
|
||||||
|
|
||||||
 xterm
|
## Screenshots
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user