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:
koru 2026-05-19 16:26:33 +00:00 committed by nekohepott
parent c204403404
commit e2acd2f6dc
No known key found for this signature in database
3 changed files with 71 additions and 66 deletions

14
.gitattributes vendored
View File

@ -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
View File

@ -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
View File

@ -1,91 +1,86 @@
# Fetch tool for linux written in Go with image support # goGoFetch
![Fetch image](assets/screenshot.png "fetch") Fetch tool for Linux written in Go with image support
# Install ![goGoFetch: screenshot](assets/screenshot.png "fetch")
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](assets/alacritty.png "alacritty") alacritty Credits to `melvi` for Nix flake.
![foot](assets/foot.png "foot") foot ```sh
git clone https://codeberg.org/nekohepott/goGoFetch && cd goGoFetch
nix build
nix run --refresh git+https://codeberg.org/nekohepott/goGoFetch
```
![necrokall](assets/xterm.png "xterm") xterm ## Screenshots
![goGoFetch: alacritty screenshot](assets/alacritty.png "alacritty")
![goGoFetch: foot screenshot](assets/foot.png "foot")
![goGoFetch: necrokall screenshot](assets/xterm.png "xterm")