{"id":18936868,"url":"https://github.com/moustacheful/glimmer","last_synced_at":"2025-06-25T18:04:13.055Z","repository":{"id":48795433,"uuid":"380533652","full_name":"moustacheful/glimmer","owner":"moustacheful","description":"A small tool to use along with i3/Sway to add CSS-powered decorations to your focused windows, for better usability.","archived":false,"fork":false,"pushed_at":"2022-11-26T11:11:44.000Z","size":75,"stargazers_count":36,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T20:56:10.143Z","etag":null,"topics":["css","gtk3","i3"],"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/moustacheful.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}},"created_at":"2021-06-26T15:23:39.000Z","updated_at":"2025-03-02T11:36:49.000Z","dependencies_parsed_at":"2023-01-22T07:20:02.737Z","dependency_job_id":null,"html_url":"https://github.com/moustacheful/glimmer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moustacheful%2Fglimmer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moustacheful%2Fglimmer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moustacheful%2Fglimmer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moustacheful%2Fglimmer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moustacheful","download_url":"https://codeload.github.com/moustacheful/glimmer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249129145,"owners_count":21217293,"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":["css","gtk3","i3"],"created_at":"2024-11-08T12:09:06.859Z","updated_at":"2025-04-15T18:31:37.171Z","avatar_url":"https://github.com/moustacheful.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glimmer\n\n## What\n\nA tool for decorating i3 windows when they get focused, written in Rust.\n\nhttps://user-images.githubusercontent.com/4857535/124782646-61e90a80-df12-11eb-8930-a321ecffbee1.mp4\n\n## Why\n\nWhen using i3-gaps I ran into the following problems.\n\n- Glitches when using regular borders and titlebars that showed up in the background (as described [here](https://github.com/Airblader/i3/issues/190)), which as far as I know haven't been solved yet.\n- The above meant usually relying on transparency or dimming to have a 'highlighted' state, which for me at least beats the purpose of having all your windows in a tiled fashion. To get the highlighted effect you have to lower the opacity or dim it to the point it's too hard to read.\n- Even if borders and titlebars _did_ work properly. They just don't gel very well with the `a e s t h e t i c` anyway.\n\nEventually I gave up and continued using vanilla i3 instead, but had this idea floating around. It focuses on those shortcomings. Does it solve them? Not too sure myself, but it was a fun experiment.\n\n## Requirements\n\n- i3 (Note that Sway is not currently supported)\n- A compositor, since it literally draws windows on top of your windows.\n- GTK needs to be on your system to build this application, follow the instructions [here](https://crates.io/crates/gtk)\n\nFor building:\n\n- Rust v1.5x, currently only tested with **v1.53.0**\n\n```\ncargo build \u0026\u0026 cargo run\n```\n\n## Installation\n\n#### Pre built binaries\n\nYou can download a pre built-binary from the [releases page](https://github.com/moustacheful/glimmer/releases)\n\n#### Cargo\n\nRemember to read the requirements above!\n\n```\ncargo install glimmer\n```\n\n## Running and customizing\n\n```\nglimmer --styles=./path/to/your/theme.css\n```\n\nThe css file dictates how the window decorations look like, and they have 2 elements to customize, `#box` which represents the boundaries of the window and `#label`, which has the window title. Additionally, there's an `.animate` class applied to the parent which can help triggering animations for both the box and label.\n\nThere are some examples of this in the `themes` directory. Feel free to contribute more!\n\n#### Note that the CSS is not full spec, and you can see the supported properties by GTK [here](https://docs.gtk.org/gtk3/css-properties.html)\n\nA simple example for this, animated using transitions:\n\n```css\n#box {\n  background: rgba(255, 200, 0, 0.2);\n  transition: background 2s ease, margin 0.2s ease;\n  margin: 10px;\n}\n\n.animate #box {\n  background: transparent;\n  margin: 0px;\n}\n\n#label {\n  opacity: 0; /* Hide the label */\n}\n```\n\nThis will produce the following\n\nhttps://user-images.githubusercontent.com/4857535/124782792-8349f680-df12-11eb-8231-4a356d33f066.mp4\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoustacheful%2Fglimmer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoustacheful%2Fglimmer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoustacheful%2Fglimmer/lists"}