{"id":23412525,"url":"https://github.com/elvyria/caffi","last_synced_at":"2025-10-30T01:30:34.643Z","repository":{"id":269270360,"uuid":"906910859","full_name":"Elvyria/Caffi","owner":"Elvyria","description":"A simple widget calendar for Linux.","archived":false,"fork":false,"pushed_at":"2025-01-01T11:34:13.000Z","size":80,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T23:48:04.032Z","etag":null,"topics":["gtk4","gui","linux","relm4","rust","wayland","widget"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Elvyria.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-22T09:27:18.000Z","updated_at":"2025-01-03T13:04:43.000Z","dependencies_parsed_at":"2024-12-22T10:27:33.074Z","dependency_job_id":"4d5cc645-37bf-4760-aaf9-cc51423ea6ff","html_url":"https://github.com/Elvyria/Caffi","commit_stats":null,"previous_names":["elvyria/caffi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elvyria%2FCaffi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elvyria%2FCaffi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elvyria%2FCaffi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elvyria%2FCaffi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elvyria","download_url":"https://codeload.github.com/Elvyria/Caffi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238917742,"owners_count":19552142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gtk4","gui","linux","relm4","rust","wayland","widget"],"created_at":"2024-12-22T18:16:16.163Z","updated_at":"2025-10-30T01:30:29.356Z","avatar_url":"https://github.com/Elvyria.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caffi\n[![Crates.io](https://img.shields.io/crates/v/caffi?logo=rust)](https://crates.io/crates/caffi)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow)](https://opensource.org/licenses/MIT)\n\nCaffi is a simple desktop calendar that is in a very early stage of development.\n\n![Preview](https://github.com/user-attachments/assets/ede121d5-67c0-4019-beda-5c25c96d64b8)\n\n\n## Installation\nCan be installed from [crates.io](https://crates.io/) with `cargo`:\n\n```sh\ncargo install caffi --locked --features Sass,Wayland...\n```\n\n## Dependencies\n* [GTK4](https://www.gtk.org/)\n* [gtk4-layer-shell](https://github.com/wmww/gtk4-layer-shell) (Feature: Wayland)\n* [libxcb](https://xcb.freedesktop.org/) (Feature: X11)\n\n## Features\nSome features can be enabled at compile time.\n* [Accent](https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Settings.html) - Inherits the accent color from the system's settings.\n* [Sass](https://sass-lang.com/) - Allows you to use SCSS instead of CSS.\n* [Wayland](https://wayland.freedesktop.org/) - Uses wlr-layer-shell to imitate window positioning.\n* [X11](https://www.x.org/) - Sets WM hints and properties, and repositions the window.\n\n## Usage\n```\nUsage: caffi [-1 \u003cfirst\u003e] [-a \u003canchor...\u003e] [-m \u003cmargin...\u003e] [-u \u003cuserstyle\u003e] [-v]\n\nCalendar\n\nOptions:\n  -1, --first       first day of the week: (sun)day, (mon)day, (tue)sday...\n  -a, --anchor      screen anchor point: (t)op, (b)ottom, (l)eft, (r)ight\n  -m, --margin      margin distance for each anchor point\n  -u, --userstyle   path to the userstyle\n  -v, --version     print version\n  --help            display usage information\n```\n\n## Customization\nCaffi is built with GTK4 and uses CSS to define its appearance.  \nYou will find the style sheet in your config directory after the first launch.\n```sh\n${XDG_CONFIG_HOME:-$HOME/.config}/caffi/style.css\n```\nIf you have enabled the Sass feature, it will also look for *.scss and *.sass files.\n```sh\n${XDG_CONFIG_HOME:-$HOME/.config}/caffi/style.sass\n${XDG_CONFIG_HOME:-$HOME/.config}/caffi/style.scss\n```\n\n## Tips\n### Anchoring\nIt is often desirable to be able to position widgets relatively to a screen side.  \nTwo flags will help with this: `-a --anchor` and `-m --margin`.  \nEach margin value provided will match every anchor point respectively.  \n```sh\ncaffi --anchor left --anchor bottom --margin 20 --margin 30\n```\n\n### Toggle Window\nIf you want to toggle window with a click of a button, Unix way is the way:\n```sh\npkill caffi | caffi\n```\n\n## Troubleshooting\n\n### Environment\nCaffi is developed and tested with:\n* Wayland (Hyprland): `0.45.2`\n\nIf your setup is different and you experience issues, feel free to file a bug report.\n\n### GTK\nTo get GTK related messages a specific environment variable must be non empty.\n```sh\nGTK_DEBUG=1 caffi\n```\n\n## Building\nTo build this little thing, you'll need some [Rust](https://www.rust-lang.org/).\n\n```sh\ngit clone --depth 1 https://github.com/Elvyria/caffi\ncd caffi\ncargo build --locked --release --features Sass,Wayland...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felvyria%2Fcaffi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felvyria%2Fcaffi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felvyria%2Fcaffi/lists"}