{"id":24293762,"url":"https://github.com/zzampax/hyprland-workspaces-ipc","last_synced_at":"2026-05-27T21:31:57.280Z","repository":{"id":272318117,"uuid":"916157862","full_name":"zzampax/hyprland-workspaces-ipc","owner":"zzampax","description":"Implementation of UNIX socket-dependent script to handle Hyprlands workspaces, multi-monitor support [MIRROR]","archived":false,"fork":false,"pushed_at":"2025-01-13T16:21:51.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-09T07:43:36.154Z","etag":null,"topics":["hyprland","hyprland-ipc","rust","unix-socket","unix-socket-ipc"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zzampax.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":"2025-01-13T15:08:07.000Z","updated_at":"2025-01-13T16:21:54.000Z","dependencies_parsed_at":"2025-01-13T17:28:34.096Z","dependency_job_id":"c2a67124-e20b-47a6-a887-2b407ae34053","html_url":"https://github.com/zzampax/hyprland-workspaces-ipc","commit_stats":null,"previous_names":["zzampax/hyprland-workspaces-ipc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zzampax/hyprland-workspaces-ipc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzampax%2Fhyprland-workspaces-ipc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzampax%2Fhyprland-workspaces-ipc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzampax%2Fhyprland-workspaces-ipc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzampax%2Fhyprland-workspaces-ipc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzampax","download_url":"https://codeload.github.com/zzampax/hyprland-workspaces-ipc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzampax%2Fhyprland-workspaces-ipc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33585203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hyprland","hyprland-ipc","rust","unix-socket","unix-socket-ipc"],"created_at":"2025-01-16T16:58:45.777Z","updated_at":"2026-05-27T21:31:57.253Z","avatar_url":"https://github.com/zzampax.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hyprland Workspaces IPC Script\n## Introduction\nReal time utility that tracks every workspace currently in use in [Hyprland](https://github.com/hyprwm/Hyprland) filtered by monitor output, example:\n```json\n{\n    \"workspaces\": {\n        \"HDMI-3\": [\n            2,\n        ],\n        \"DP-1\": [\n            1,\n        ],\n    },\n    \"focused\": [\n        \"DP-1\",\n        1,\n    ],\n    \"socket_path\": \"[...]/.socket2.sock\",\n}\n```\nThe script relies on `tokio` for handling asynchronous calls to the **UNIX** socket provided by Hyprland and `serde_json` for handling **JSON** encoded output from `hyprctl`.\n## How it Works\nOn execution, the script fetches the current workspaces (filtered by monitor) as long with the focused monitor+workspace pair with the `hyprctl commands`:\n```bash\n# For workspace list\nhyprctl workspaces -j # -j arg for JSON output\n# For currently focused workspace\nhyprctl activeworkspace -j\n```\nAdapted for script execution in Rust (using `std::process::{Command, Output}` structs):\n```rust\n// For workspace list\nlet output: Output = Command::new(\"hyprctl\")\n        .arg(\"workspaces\")\n        .arg(\"-j\")\n        .output()\n        .expect(\"Failed to execute command\");\n// Same concept for currently focused workspace\n// ...\n```\nThe script then proceeds to listen for event calls on the UNIX socket such as:\n- `createworkspace`\n- `workspace`\n- `destroyworkspace`\n- `focusedmon`\n\n\u003e Keep in mind than no `v2` is considered\n## Why?\nThis project aims to provide a lightweight solution to handle live workspaces information for a taskbar (Wayland, Hyprland).\n## License\n[GNU Affero General Public License v3.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzampax%2Fhyprland-workspaces-ipc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzampax%2Fhyprland-workspaces-ipc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzampax%2Fhyprland-workspaces-ipc/lists"}