{"id":28394835,"url":"https://github.com/cristianoliveira/aerospace-marks","last_synced_at":"2026-03-08T01:31:08.078Z","repository":{"id":293343597,"uuid":"983739427","full_name":"cristianoliveira/aerospace-marks","owner":"cristianoliveira","description":"Vim like marks for Aerospace WM","archived":false,"fork":false,"pushed_at":"2026-02-07T15:30:40.000Z","size":6098,"stargazers_count":18,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-07T22:23:13.468Z","etag":null,"topics":["command-line-tool","golang","i3wm","macos","productivity","socket","swaywm","tiling-window-manager","vim-like","windows-manager"],"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/cristianoliveira.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}},"created_at":"2025-05-14T20:56:23.000Z","updated_at":"2026-02-07T17:04:31.000Z","dependencies_parsed_at":"2025-07-05T01:21:11.284Z","dependency_job_id":"e20f98ed-168f-45c4-b9cc-018955775dad","html_url":"https://github.com/cristianoliveira/aerospace-marks","commit_stats":null,"previous_names":["cristianoliveira/aerospace-ext","cristianoliveira/aerospace-marks"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/cristianoliveira/aerospace-marks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianoliveira%2Faerospace-marks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianoliveira%2Faerospace-marks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianoliveira%2Faerospace-marks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianoliveira%2Faerospace-marks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cristianoliveira","download_url":"https://codeload.github.com/cristianoliveira/aerospace-marks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianoliveira%2Faerospace-marks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30240896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"ssl_error","status_checked_at":"2026-03-08T00:55:48.608Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["command-line-tool","golang","i3wm","macos","productivity","socket","swaywm","tiling-window-manager","vim-like","windows-manager"],"created_at":"2025-05-31T19:00:52.852Z","updated_at":"2026-03-08T01:31:08.070Z","avatar_url":"https://github.com/cristianoliveira.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aerospace-marks\n\n[Vim-like marks](https://i3wm.org/docs/userguide.html#vim_like_marks) for [AeroSpace WM](https://github.com/nikitabobko/AeroSpace)\n\n## AeroSpace Compatibility\n\n - Stable version: v1.0.0\n - v0.20.0 use v0.3.x or higher\n - v0.19.1 use v0.2.x or lower\n\n## Demo\n\nhttps://github.com/user-attachments/assets/cfd84749-c436-465d-8f66-486eb2303e30\n\n## Description\n\nAllows you to add custom marks to windows and use them to set focus or summon to the current workspace.\n\nIt’s heavily inspired by [sway marks](https://man.archlinux.org/man/sway.5.en), but follows the `aerospace` style of commands\n\n```text\nmark --add|--replace [--toggle] \u003cidentifier\u003e\n\nMarks are arbitrary labels that can be used to identify certain\nwindows and then jump to them at a later time. Each identifier\ncan only be set on a single window at a time since they act as\na unique identifier. By default, mark sets identifier as the only\nmark on a window. --add will instead add identifier to the list\nof current marks for that window. If --toggle is specified mark will\nremove identifier if it is already marked.\n```\n\n### Why not use named workspaces?\n\n\u003e TL;DR: Dynamic mappings to specific windows, not workspaces.\n\nI wanted something more granular than workspaces — I want to jump to a specific window, given a context.\nSometimes my \"video\" context means YouTube, sometimes it’s a video player, sometimes a browser. I want to be able to jump to the right window, regardless of which workspace it's on.\n\nAlso, by pairing with [aerospace-scratchpad](https://github.com/cristianoliveira/aerospace-scratchpad) allows me to send away windows, mark then with a key for later bring then back!\n\n## Basic Usage\n\nAllow one to mark the current focused window with the given identifier.\n```text\naerospace-marks mark [--add|--replace] [--toggle] \u003cidentifier\u003e\n```\nAnd then focus to a window with the given mark.\n```text\naerospace-marks focus \u003cidentifier\u003e\n```\nOr summon a marked window to the current workspace.\n```text\naerospace-marks summon \u003cidentifier\u003e\n```\n\n## Advanced Usage\n\n### Output Formats\n\nMultiple commands support structured output formats for scripting via the `--output` (or `-o`) flag:\n\n#### List Command\n```bash\n# JSON format for jq processing\naerospace-marks list -o json | jq '.[] | select(.app_name == \"Brave\")'\n\n# CSV format for spreadsheet tools\naerospace-marks list -o csv | csvcut -c mark,window_title\n\n# Text format (default) for awk/sed\naerospace-marks list | awk -F'|' '{print $1}'\n```\n\n#### Focus Command\n```bash\n# JSON format for scripting\naerospace-marks focus mark1 -o json | jq '.window_id'\n\n# CSV format\naerospace-marks focus mark1 -o csv\n```\n\n#### Summon Command\n```bash\n# JSON format with focus flag\naerospace-marks summon mark1 --focus -o json | jq '.action'\n\n# Text format (default)\naerospace-marks summon mark1\n```\n\n#### Get Command\n```bash\n# JSON format for full window info\naerospace-marks get mark1 -o json | jq '.app_name'\n\n# JSON format for single field (window ID)\naerospace-marks get mark1 -i -o json | jq '.result'\n\n# Plain text for single field (backward compatible)\naerospace-marks get mark1 -i\n```\n\nSee more in [documentation](docs/)\n\nCheck [vim-like marks](https://i3wm.org/docs/userguide.html#vim_like_marks) for a more advanced usage.\n\n### Config Usage\n```toml\n# ~/.config/aerospace/config.toml\n[mode.main.binding]\n\n# Vim's like marks, similar to i3-input\n# cmd + ctrl + m and \u003cletter\u003e -- mark a window with a given \u003cletter\u003e\ncmd-ctrl-m = \"\"\"\nexec-and-forget aerospace-marks mark \\\n    $(osascript -e 'text returned of (display dialog \"mark\" default answer \"\")')\n\"\"\"\n# cmd + ctrl + ' and \u003cletter\u003e -- set focus on the window marked with \u003cletter\u003e\ncmd-ctrl-quote = \"\"\"\nexec-and-forget aerospace-marks focus \\\n    $(osascript -e 'text returned of (display dialog \"focus\" default answer \"\")')\n\"\"\"\n\n# Mark current window with a given identifier\ncmd-shift-h = [\"exec-and-forget aerospace-marks mark h\"]\ncmd-shift-j = [\"exec-and-forget aerospace-marks mark j\"]\ncmd-shift-k = [\"exec-and-forget aerospace-marks mark k\"]\ncmd-shift-l = [\"exec-and-forget aerospace-marks mark l\"]\n\ncmd-shift-b = [\"exec-and-forget aerospace-marks mark browser\", \"mode main\"]\n\n# Focus to a window with the given identifier\ncmd-ctrl-h = [\"exec-and-forget aerospace-marks focus h\"]\ncmd-ctrl-j = [\"exec-and-forget aerospace-marks focus j\"]\ncmd-ctrl-k = [\"exec-and-forget aerospace-marks focus k\"]\ncmd-ctrl-l = [\"exec-and-forget aerospace-marks focus l\"]\n\ncmd-ctrl-b = [\"exec-and-forget aerospace-marks focus browser\", \"mode main\"]\n```\n\n## Installation\n\n### Using Homebrew\n\nIf you have Homebrew installed, you can install `aerospace-marks` using the following command:\n\n```bash\nbrew install cristianoliveira/tap/aerospace-marks\n```\n\n### Using Nix\n\nIf you have Nix installed, you can build and install `aerospace-marks` using the following command:\n\n```bash\nnix profile install github:cristianoliveira/aerospace-marks\n```\n\nYou can also run without installing it by using:\n\n```bash\nnix run github:cristianoliveira/aerospace-marks\n```\n\nThis will build the default package defined in `flake.nix`.\n\n### Installing with Go\n\nIf you have Go installed, you can install `aerospace-marks` directly using:\n\n```bash\ngo install github.com/cristianoliveira/aerospace-marks@latest\n```\n\nThis will download and install the latest version of `aerospace-marks` to your `$GOPATH/bin`.\n\n#### Post installation\n\nAfter installing, you may need to include aerospace-marks in aerospace context.\n\nCheck where the binary is installed, run:\n```bash\necho $(which aerospace-marks) | sed 's/\\/aerospace-marks//g'\n```\n\nAnd in your config add:\n```toml\n[exec]\n    inherit-env-vars = true\n\n# OR\n\n[exec.env-vars]\n    # Replace 'aerospace-marks/install/path' with the actual path from the above command\n    PATH = 'aerospace-marks/install/path/bin:${PATH}'\n```\n\n### Building from Source\n\nTo build from source, ensure you have Go installed. Then, clone the repository and run:\n\n```bash\ngit clone https://github.com/cristianoliveira/aerospace-marks.git\ncd aerospace-marks\ngo build -o aerospace-marks\n```\n\nThis will create an executable named `aerospace-marks` in the current directory.\n\n## Troubleshooting\n\nIf you encounter issues while using `aerospace-marks`, you can use the following environment variables to help diagnose the problem:\n\n- `AEROSPACE_MARKS_DB_PATH`: This variable sets the path for the AeroSpace marks database. By default, it is set to `$HOME/.local/state/aerospace-marks`. (You can connect with sqlite client)\n\n- `AEROSPACE_MARKS_LOGS_PATH`: This variable specifies the path for the AeroSpace marks logs. The default path is `/tmp/aerospace-marks.log`. (use `tail -f \u003cpath\u003e`)\n\n- `AEROSPACE_MARKS_LOGS_LEVEL`: This variable determines the logging level for AeroSpace marks. The default level is `DISABLED`.\n\nThese environment variables can be set directly in the AeroSpace configuration file to ensure they are available whenever AeroSpace is running. Add the following to your [AeroSpace config](https://nikitabobko.github.io/AeroSpace/guide#config-location)\n\n```toml\n[exec.env-vars]\n# Path for the AeroSpace marks database\nAEROSPACE_MARKS_DB_PATH = \"$HOME/.local/state/aerospace-marks\"\n\n# Path for the AeroSpace marks logs\nAEROSPACE_MARKS_LOGS_PATH = \"/tmp/aerospace-marks.log\"\n\n# Logging level for AeroSpace marks\nAEROSPACE_MARKS_LOGS_LEVEL = \"DEBUG\"\n```\n\nReplace the paths and values with your desired settings.\n\n### Packages\n\n- AeroSpace Socket IPC - [aerospace-ipc](https://github.com/cristianoliveira/aerospace-ipc)\n\n## License\n\nThis project is licensed under the terms of the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristianoliveira%2Faerospace-marks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcristianoliveira%2Faerospace-marks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristianoliveira%2Faerospace-marks/lists"}