{"id":16711445,"url":"https://github.com/kuabem/piow","last_synced_at":"2025-08-30T16:32:20.248Z","repository":{"id":42372198,"uuid":"340613316","full_name":"KuabeM/piow","owner":"KuabeM","description":"Put Icons On your sway workspaces","archived":false,"fork":false,"pushed_at":"2024-05-29T13:28:28.000Z","size":63,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-15T01:12:33.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/KuabeM.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":"2021-02-20T09:23:37.000Z","updated_at":"2024-11-27T13:36:30.000Z","dependencies_parsed_at":"2024-05-29T15:56:19.995Z","dependency_job_id":null,"html_url":"https://github.com/KuabeM/piow","commit_stats":{"total_commits":39,"total_committers":5,"mean_commits":7.8,"dds":0.4871794871794872,"last_synced_commit":"d9c438445eab6a9b5cae24365e686a6f6c867ecf"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KuabeM%2Fpiow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KuabeM%2Fpiow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KuabeM%2Fpiow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KuabeM%2Fpiow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KuabeM","download_url":"https://codeload.github.com/KuabeM/piow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231508383,"owners_count":18387384,"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":[],"created_at":"2024-10-12T20:12:02.026Z","updated_at":"2024-12-27T15:39:55.649Z","avatar_url":"https://github.com/KuabeM.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Put Icons On Workspaces\n\n[![Build](https://img.shields.io/github/actions/workflow/status/KuabeM/piow/build_master.yml?branch=master)](https://github.com/KuabeM/piow/actions?query=workflow%3Abuild-master)\n[![Crates.io](https://img.shields.io/crates/v/piow.svg)](https://crates.io/crates/piow)\n[![AUR](https://img.shields.io/aur/version/piow-bin)](https://aur.archlinux.org/packages/piow-bin)\n\nRename [sway] workspaces with icons according to the applications running on them. It constructs the\nname based on a format string from the config. Duplicate icons are stripped from the list.\n\nWith a space as separator and waybar, it looks like this:\n\n![](piow.png)\n\n## Installation \u0026 Usage\n\nBuild and install from source with cargo. Then simply run the executable. See `piow --help` for\nsupported cli options.\n\n```bash\n# install\ncargo install piow\n# run\npiow\n# increase log level for troubleshooting, possible values: Trace, Debug, Info, Warn, Error\nRUST_LOG=piow=Debug piow\n```\n\n## Configuration\n\n`piow` looks for a configuration file in toml format in `${XDG_CONFIG_HOME}/piow/config.toml` and\n`/etc/xdg/piow/config.toml` (former takes precedence). If it can't find this file, it loads the\ndefault configuration contained in this repo. The configuration contains a map of application names\nto icons, a default icon and a separator between workspaces number and icons. For getting started,\njust copy `default.toml` over to `${XDG_CONFIG_HOME}/piow/config.toml` and start adding your own\nicons.\n\n| Configuration Key | Description                                                                                                                                            |\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `default_icon`    | Icon used for apps without a configured icon                                                                                                           |\n| `format_str`      | Format string for generating names. Supported placeholders:\u003cbr/\u003e  `%n`: Workspace number\u003cbr/\u003e  `%i`: Icons                                             |\n| `icon_separator`  | Literal between icons                                                                                                                                  |\n| `[icons]`         | paris of `\"app-id\" = \"icon\"`, app id as reported by `swaymsg -t get_tree`, matches substrings, e.g. an entry 'libre' will be matched for 'libreoffice' |\n\nWatch the log for messages like `[WARN piow::nodes] No icon for application 'app-name' in the\nconfig.` to find applications without a config entry. Just add a line `\"app-name\" = \"icon\"` to the\nend of the config file and restart piow. The crate [find_unicode] is awesome for finding suitable\nicons on the command line.\n\n## Setup with sway \u0026 waybar\n\nAdd the following to your sway config file at `${XDG_CONFIG_HOME}/sway/config`. By forwarding the\nlog you get access to application names without a icon in the config.\n\n```bash\nexec_always --no-startup-id piow --syslog\n```\n\nIt's useful to turn of additional renaming in waybar, e.g. remove `\"format\"` and `\"format-icon\"`\nfrom the `sway/workspaces` directive in the waybar config similar to this:\n\n```json\nsway/workspaces {\n  \"disable-scroll\": true,\n  \"all-outputs\": true\n}\n```\n\n\u003e Hint: If you remove the workspace number placeholder `%i` from the format string, the ordering of\n\u003e the workspaces may no longer work as intended.\n\n## Similar Projects\n\n[Workstyle] has a similar approach but uses the i3 IPC connection. The config file format was\ninspired by this crate.\n\n[sway]: https://github.com/swaywm/sway\n[find_unicode]: https://crates.io/crates/find_unicode\n[Workstyle]: https://github.com/pierrechevalier83/workstyle\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuabem%2Fpiow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuabem%2Fpiow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuabem%2Fpiow/lists"}