{"id":17617443,"url":"https://github.com/gumieri/sway-session","last_synced_at":"2025-04-30T17:41:52.548Z","repository":{"id":57596084,"uuid":"223865834","full_name":"gumieri/sway-session","owner":"gumieri","description":"Tool for saving the state of the Sway WM session and restoring it","archived":false,"fork":false,"pushed_at":"2022-10-12T07:49:49.000Z","size":23,"stargazers_count":56,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-25T19:16:43.118Z","etag":null,"topics":["desktop","session","sway","swaywm"],"latest_commit_sha":null,"homepage":"","language":"Go","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/gumieri.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":"2019-11-25T05:09:16.000Z","updated_at":"2025-04-11T22:02:27.000Z","dependencies_parsed_at":"2023-01-19T20:10:18.512Z","dependency_job_id":null,"html_url":"https://github.com/gumieri/sway-session","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumieri%2Fsway-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumieri%2Fsway-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumieri%2Fsway-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumieri%2Fsway-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gumieri","download_url":"https://codeload.github.com/gumieri/sway-session/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251752773,"owners_count":21638172,"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":["desktop","session","sway","swaywm"],"created_at":"2024-10-22T19:13:50.422Z","updated_at":"2025-04-30T17:41:52.507Z","avatar_url":"https://github.com/gumieri.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sway-session\n\nTool for saving the state of the [Sway WM](https://swaywm.org) session and restoring it.\n\n**At the moment, it is a [PoC](https://en.wikipedia.org/wiki/Proof_of_concept)!**\n\n[![Actions Status](https://github.com/gumieri/sway-session/workflows/Go/badge.svg)](https://github.com/gumieri/sway-session/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/gumieri/note)](https://goreportcard.com/report/github.com/gumieri/note)\n[![GoDoc](https://godoc.org/github.com/gumieri/sway-session?status.svg)](https://godoc.org/github.com/gumieri/sway-session)\n\n## Usage\nFor saving the running programs and its workspace disposition run the given command:\n```bash\nsway-session save\n```\nIt will create a json file at `$XDG_DATA_HOME/sway-session/sessions/`.\n\nTo restore simply use:\n```bash\nsway-session restore\n```\nThe recomendation would be to place at the sway config file something like that:\n```config\nexec sway-session restore\n```\n\nThere is a command for constantly save your session:\n```bash\nsway-session save-loop 120\n```\nIt will save your session every 2 minutes, informed in seconds. If the seconds are not informed it will assume the default value, which is 1 minute.\n\nThe recomendation way to use it would be something like:\n```config\nexec sway-session restore \u0026\u0026 sway-session save-loop\n```\n\n## Supported programs\nConsidering that a lot of programs have different ways of retrieving it state and restoring it to the desired state,\nthe `sway-session` can only offer a generic approach for all the ecosystem and for more specific programs (like terminal-emulators)\nto offer some rules with more capabilities.\n\n### → [alacritty](https://github.com/jwilm/alacritty)\n * current working directory\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgumieri%2Fsway-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgumieri%2Fsway-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgumieri%2Fsway-session/lists"}