{"id":28211735,"url":"https://github.com/porfanid/workspace-switcher","last_synced_at":"2026-05-05T02:40:15.399Z","repository":{"id":250892772,"uuid":"835775927","full_name":"porfanid/Workspace-Switcher","owner":"porfanid","description":"Project to create a utility to switch between workspaces on a Xorg system","archived":false,"fork":false,"pushed_at":"2025-11-08T18:15:08.000Z","size":669,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-05T02:39:47.846Z","etag":null,"topics":["linux","open-source","productivity","utility","x11","x11-wm","xorg","xserver"],"latest_commit_sha":null,"homepage":"https://porfanid.github.io/Workspace-Switcher/","language":"C++","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/porfanid.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"porfanid","patreon":null,"open_collective":null,"ko_fi":"porfanid","tidelift":null,"community_bridge":null,"liberapay":"porfanid","issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-07-30T14:03:26.000Z","updated_at":"2024-08-01T10:56:35.000Z","dependencies_parsed_at":"2024-07-30T17:47:41.822Z","dependency_job_id":"16fb89ff-4d85-46d5-820e-545e92aaceb6","html_url":"https://github.com/porfanid/Workspace-Switcher","commit_stats":null,"previous_names":["porfanid/workspace-switcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/porfanid/Workspace-Switcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porfanid%2FWorkspace-Switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porfanid%2FWorkspace-Switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porfanid%2FWorkspace-Switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porfanid%2FWorkspace-Switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/porfanid","download_url":"https://codeload.github.com/porfanid/Workspace-Switcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porfanid%2FWorkspace-Switcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32633438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"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":["linux","open-source","productivity","utility","x11","x11-wm","xorg","xserver"],"created_at":"2025-05-17T18:09:57.475Z","updated_at":"2026-05-05T02:40:15.394Z","avatar_url":"https://github.com/porfanid.png","language":"C++","funding_links":["https://github.com/sponsors/porfanid","https://ko-fi.com/porfanid","https://liberapay.com/porfanid"],"categories":[],"sub_categories":[],"readme":"# Workspace Switcher\n\n## Overview\n\n**Workspace Switcher** is a C++ program designed to switch between workspaces on X11 display servers. Utilizing the Xlib library, it allows users to navigate between workspaces with ease.\n\n## Features\n\n- Switch to the next workspace.\n- Switch to the previous workspace.\n\n## Requirements\n\n- **X11 Development Libraries**: Required for X11 support.\n- **C++17 or later**: Recommended for compatibility and modern features.\n\n## Installation\n\nYou can install **Workspace Switcher** using one of the following methods:\n\n### 1. Install from PPA\n\nFor Ubuntu users, installing from the PPA is the easiest method. First, add the PPA to your system and then install the package:\n\n```bash\nsudo add-apt-repository ppa:porfanid/workspaces\nsudo apt-get update\nsudo apt-get install workspace-switcher\n```\n\n### 2. Build from Source\n\nIf you prefer to build the application from source, follow these steps:\n\n#### Install Dependencies\n\nInstall the necessary development libraries:\n\n```bash\nsudo apt-get install libx11-dev libxrandr-dev\n```\n\n#### Clone the Repository\n\nClone the repository to your local machine:\n\n```bash\ngit clone https://github.com/porfanid/workspace-switcher.git\ncd workspace-switcher\n```\n\n#### Build and Install the Program Using CMake\n\n**Local Installation**: Build the program in the local directory:\n\n```bash\nmkdir build\ncd build\ncmake ..\nmake\n```\n\nThis will generate the executable named `workspaces` in the local directory.\n\n**Global Installation**: To install the program globally:\n\n```bash\nmkdir build\ncd build\ncmake ..\nmake install\n```\n\nThis will install the executable named `workspaces` to your global system directories.\n\n## Usage\n\nRun the program with either `next` or `prev` as an argument to switch to the next or previous workspace, respectively.\n\n### For X11:\n\n```bash\n./workspaces next\n./workspaces prev\n```\n\n#### Demo\n\nHere is a demonstration of the Workspace Switcher in action:\n\n\n\nhttps://github.com/user-attachments/assets/cbda1d2b-cc11-4164-9144-d610973773fe\n\n\n\nhttps://github.com/user-attachments/assets/13ab7ee9-1896-4bfc-9b22-c990d8027298\n\n\n## How It Works\n\nThe program performs the following steps to switch workspaces:\n\n1. **Open Display**: Connects to the X server.\n2. **Get Root Window**: Retrieves the root window for the current display.\n3. **Get Number of Workspaces**: Queries the number of available workspaces.\n4. **Get Current Workspace**: Retrieves the ID of the current workspace.\n5. **Calculate Target Workspace**: Determines which workspace to switch to based on user input (`next` or `prev`).\n6. **Switch Workspace**: Sends an X11 `ClientMessage` event to change the workspace.\n\n## Contributing\n\nIf you'd like to contribute to the project, please follow these steps:\n\n1. **Fork the Repository**: Create a personal copy of the repository on GitHub.\n2. **Create a New Branch**: Develop your feature or bug fix in a new branch.\n3. **Submit a Pull Request**: Open a pull request with a clear description of your changes.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nFor any questions or feedback, please contact:\n\n- **Email**: pavlos[at]orfanidis.net.gr\n- **GitHub**: [porfanid](https://github.com/porfanid)\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fporfanid%2Fworkspace-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fporfanid%2Fworkspace-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fporfanid%2Fworkspace-switcher/lists"}