76 lines
1.1 KiB
Markdown
76 lines
1.1 KiB
Markdown
# Fetch written in Go with image support (only for foot and kitty)
|
|
|
|

|
|
|
|
# Install
|
|
you can get gogofetch on AUR!
|
|
```bash
|
|
yay -S gogofetch-git
|
|
```
|
|
|
|
# Usage
|
|
basic usage:
|
|
```bash
|
|
gogofetch
|
|
```
|
|
to show custom image (only png supported btw):
|
|
```bash
|
|
gogofetch -i *absolute_path*
|
|
```
|
|
to show custom image and set custom width:
|
|
```bash
|
|
gogofetch -i *absolute_path* -w 250
|
|
```
|
|
to show help message:
|
|
```bash
|
|
gogofetch -h
|
|
```
|
|
|
|
# NixOS
|
|
credits to melvi for flake
|
|
|
|
to build with nix:
|
|
```bash
|
|
nix build
|
|
```
|
|
to run with nix:
|
|
```
|
|
nix run
|
|
```
|
|
to install with nixos:
|
|
|
|
1. Add to inputs:
|
|
```
|
|
goGoFetch.url = "git+https://codeberg.org/nekohepott/goGoFetch";
|
|
```
|
|
2. Add to packages (system-wide or home-manager):
|
|
```
|
|
environment.systemPackages = [
|
|
inputs.goGoFetch.packages.${pkgs.system}.default
|
|
];
|
|
```
|
|
or
|
|
```
|
|
home.packages = [
|
|
inputs.goGoFetch.packages.${pkgs.system}.default
|
|
];
|
|
```
|
|
3. Run rebuild and then you can run fetch with *gogofetch* command
|
|
|
|
|
|
# Build
|
|
to build:
|
|
```
|
|
git clone https://codeberg.org/nekohepott/goGoFetch
|
|
cd goGoFetch
|
|
go build main.go
|
|
```
|
|
and run:
|
|
```
|
|
./main
|
|
```
|
|
|
|
|
|
|
|
|