{"id":16369643,"url":"https://github.com/dcsunset/i3-switch","last_synced_at":"2026-03-03T17:30:16.236Z","repository":{"id":62570090,"uuid":"425622845","full_name":"DCsunset/i3-switch","owner":"DCsunset","description":"i3 script to switch between windows in history","archived":false,"fork":false,"pushed_at":"2021-12-18T00:35:39.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T15:02:47.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/DCsunset.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-11-07T21:43:20.000Z","updated_at":"2021-12-18T00:35:43.000Z","dependencies_parsed_at":"2022-11-04T00:28:07.628Z","dependency_job_id":null,"html_url":"https://github.com/DCsunset/i3-switch","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCsunset%2Fi3-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCsunset%2Fi3-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCsunset%2Fi3-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCsunset%2Fi3-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DCsunset","download_url":"https://codeload.github.com/DCsunset/i3-switch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239885369,"owners_count":19713287,"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-11T02:55:54.070Z","updated_at":"2025-02-20T17:40:53.223Z","avatar_url":"https://github.com/DCsunset.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# i3-switch\n\n[![PyPI](https://img.shields.io/pypi/v/i3-switch)](https://pypi.org/project/i3-switch/)\n\ni3 script to switch between windows in history.\n\nThis script is inspired by [i3-swap-focus](https://github.com/olivierlemoal/i3-swap-focus).\n\nIt provides a configurable history length and supports consecutive switching within the history.\nBesides, it can skip the closed windows, windows in scratchpad, or windows not in the current workspace.\n\n## Installation\n\n```\npip install i3-switch\n```\n\n## Configuration\n\nAdd the following lines to your i3 config file:\n\n```\n# Start i3-switch process\nexec i3-switch\n\nbindsym $mod+Tab exec pkill -USR1 -F \"/tmp/i3-switch.pid\"\n# Switch in the same workspaces\n# bindsym $mod+Tab exec pkill -USR2 -F \"/tmp/i3-switch.pid\"\n```\n\nTo change the options for i3-switch in your i3 config:\n\n```\nexec i3-switch --max-len 1000 --timeout 400\n```\n\n## Consecutive Switching\n\nWhen switching before it times out,\nthe history within the consecutive switch won't be recorded.\n\nFor example, at first the records are `DCBA`,\nafter switch twice consecutively,\nit should become `BDCA`.\n\nInternally, the process is as follows:\n`DCBA` -\u003e `CDCBA` -\u003e `BCDCBA` -\u003e `BDCA` (cleanup after timeout).\nThis process is necessary because the signal itself is stateless,\nso the state is kept in the history.\n\n\n## Options\n\n| Name        | Description               | Default |\n| ----------- | ------------------------- | ------- |\n| `--max-len` | Max length of the window deque | `100`     |\n| `--timeout` | Timeout for consecutive switching in milliseconds | `500` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcsunset%2Fi3-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcsunset%2Fi3-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcsunset%2Fi3-switch/lists"}