Files
k-shrink/INSTALL.md

1.4 KiB

Installation

AUR (Arch Linux)

yay -S k-shrink

AUR page: https://aur.archlinux.org/packages/k-shrink (placeholder — submit PKGBUILD first)

Then enable the service:

systemctl --user enable --now k-shrink.service

Manual (from source)

Prerequisites: Rust toolchain, wayland libraries.

git clone https://github.com/GKaszewski/k-shrink
cd k-shrink
cargo build --release

Install the binary:

install -Dm755 target/release/k-shrink ~/.local/bin/k-shrink

Install the systemd service:

mkdir -p ~/.config/systemd/user
cp contrib/k-shrink.service ~/.config/systemd/user/
systemctl --user enable --now k-shrink.service

Install the man page (optional):

mkdir -p ~/.local/share/man/man1
cp man/k-shrink.1 ~/.local/share/man/man1/
gzip ~/.local/share/man/man1/k-shrink.1
mandb ~/.local/share/man   # update man index

cargo install

cargo install --git https://github.com/GKaszewski/k-shrink k-shrink

Then enable the service (uses %h/.cargo/bin/k-shrink):

mkdir -p ~/.config/systemd/user
# Download the service file from the repo contrib/ directory, then:
systemctl --user enable --now k-shrink.service

Verifying

systemctl --user status k-shrink.service
# Copy an image, then paste — it should arrive compressed.

Logs:

journalctl --user -u k-shrink.service -f