2 releases
new 0.2.1 | Feb 28, 2025 |
---|---|
0.2.0 | Feb 28, 2025 |
#92 in GUI
6MB
735 lines
homie
Homie is here to keep you company while you work on your computer! It’s an animated, interactive little friend that runs across your screen and responds to your clicks.
Prerequisites
- Rust: Make sure you have Rust installed. If not, head over to Rust’s official website for installation instructions.
- GTK4: Homie uses GTK4 for rendering the character. It can be installed on Linux by running:
sudo apt install libgtk-4-dev
Installation
- Clone the repository to your local machine:
git clone https://github.com/hannahfluch/homie.git
cd homie
- Build the project using cargo
cargo build --release
How to Run 🏃
Run this command to use homie with the rat sprites, a width of 200 pixels, 9fps and a movement speed of 35:
homie -s ./res/rat_sprites/ -w 200 -f 9 -m 35
Homie is also able to infer the width/height according to the aspect ratio of the original picture, if only one dimension is provided.
Note: This can lead to unwanted behavior when switching sprites on-the-fly.
For more information run this command:
homie -h
Reloading Sprites On-the-Fly
Want to update Homie's appearance without restarting the program? Homie can receive signals to reload the sprites:
kill -SIGUSR1 <pid>
Send SIGUSR1 or SIGUSR2
Replace with the process ID of the Homie instance. This will trigger Homie to reload the sprite animations dynamically
Instead, the automatic-reload
flag in combination with the signal-frequency
configuration can be used.
Configuration ⚙️
Homie creates a default configuration file upon its first run. This file is located at:
~/.config/homie/config.toml
Default Configuration File
The configuration file includes all necessary settings to customize your Homie's behavior and appearance. However, for Homie to function, you must specify a valid sprite path:
- Using command-line arguments
- Adding the sprite path to the configuration file
Custom Sprites 🎨
Homie thrives on customization! Just provide a directory containing 3 different gifs(idle
, click
, run
), and watch your Homie come to life with your own animations.
Dependencies
~19–27MB
~501K SLoC