{"id":19713490,"url":"https://github.com/shalomb/unmarked","last_synced_at":"2025-02-27T15:54:54.122Z","repository":{"id":260837301,"uuid":"567437204","full_name":"shalomb/unmarked","owner":"shalomb","description":"Window switching for Mac OS X","archived":false,"fork":false,"pushed_at":"2024-11-03T11:59:44.000Z","size":64,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T14:52:33.152Z","etag":null,"topics":["cli","golang","keyboard","productivity","skhd","skhdrc","window-management","yabai"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shalomb.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":"2022-11-17T19:42:45.000Z","updated_at":"2024-11-14T19:02:09.000Z","dependencies_parsed_at":"2024-11-02T23:23:58.192Z","dependency_job_id":"fd744e5e-fb85-4ba2-bf3d-7a86111ce950","html_url":"https://github.com/shalomb/unmarked","commit_stats":null,"previous_names":["shalomb/unmarked"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shalomb%2Funmarked","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shalomb%2Funmarked/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shalomb%2Funmarked/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shalomb%2Funmarked/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shalomb","download_url":"https://codeload.github.com/shalomb/unmarked/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241031949,"owners_count":19897387,"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":["cli","golang","keyboard","productivity","skhd","skhdrc","window-management","yabai"],"created_at":"2024-11-11T22:22:54.606Z","updated_at":"2025-02-27T15:54:54.102Z","avatar_url":"https://github.com/shalomb.png","language":"Go","readme":"**unmarked 🎯**\n---\n\nSimilar to [`harpoon`](https://github.com/ThePrimeagen/harpoon/tree/harpoon2), unmarked\nis the keyboard user's tool for switching desktop windows using just their\nmarks.\n\nIf you are familiar with [vim/neovim's concept of marks](https://vim.fandom.com/wiki/Using_marks#Setting_marks) - unmarked does\nthe same for desktop windows.\n\n```shell\nunmarked mark f     # Mark the currently active window with the letter 'f'\n# Move around to other windows in the desktop environment, etc\nunmarked summon f   # Switch back to and focus the window marked 'f'\n```\n\n[yabai](https://github.com/koekeishiya/yabai) and [skhd](https://github.com/koekeishiya/skhd) are required to complete functionality. Works only on MacOS currently.\n\n**Setup ⚙️**\n---\n\nWith a `~/.config/skhd/skhdrc` file as follows\n\n```skhd\nctrl + alt - a : ~/.bin/unmarked summon a\nctrl + alt - b : ~/.bin/unmarked summon b\nctrl + alt - c : ~/.bin/unmarked summon c\n...\nctrl + alt - x : ~/.bin/unmarked summon x\nctrl + alt - y : ~/.bin/unmarked summon y\nctrl + alt - z : ~/.bin/unmarked summon z\n\nctrl + alt + cmd - a : ~/.bin/unmarked mark a\nctrl + alt + cmd - b : ~/.bin/unmarked mark b\nctrl + alt + cmd - c : ~/.bin/unmarked mark c\n...\nctrl + alt + cmd - x : ~/.bin/unmarked mark x\nctrl + alt + cmd - y : ~/.bin/unmarked mark y\nctrl + alt + cmd - z : ~/.bin/unmarked mark z\n```\nYou are free to use any letter now to mark (and jump between) windows.\n\nLet's say you use wezterm a lot in your workflow and want to mark it - you\nwould press `ctrl-alt-cmd-t` to mark it with the letter `t`. (`t` being\na mnemonic for terminal - but you would choose any letter of your liking).\n\nNow, let's say you've switched windows and are doing something else and want\nto move back to the wezterm window quickly - simply press `ctrl-alt-t`. Voila!\n\nNo need to `alt-tab` or reach for the mouse - Win! 🏆\n\nTo help setup a set of initial marks, an example [`unmarked.yaml`](./unmarked.yaml) is\navailable to build from.\n\n```shell\nmkdir -p ~/Library/Application\\ Support/unmarked/\ncp unmarked.yaml ~/Library/Application\\ Support/unmarked/\n\n# Setup marks on your preferences\nunmarked generate\n```\n\n**why? 💡**\n---\n\nMost developers' workflow usually involves making some code edits in the\nterminal, switching to a browser to test, moving to some custom app to making\nsome comments, moving to slack to make an announcement, moving back to the\nterminal to pick up coding work, etc.\n\n`alt-tabbing` your way through many open windows is a tad bit tedious that the\ntab key starts to develop a shine. For the few windows that make up the\ncurrent context, it should be super quick to switch to/between them and hence\nthe `ctrl-alt-\u003cmnemonic\u003e` to keep you in flow state.\n\n**Building 🛠️**\n---\n\nRequires `go` \u003e= 1.19, yabai, skhd\n\n```shell\nmake build\ncp unmarked-darwin* ~/.bin/unmarked  # or some other dir in $PATH\nexport PATH=\"$HOME/.bin:$PATH\"\n\nunmarked help  # Testing installation\n```\n**Debugging 🐞**\n---\n\nEnsure `unmarked` is installed into a directory of `$PATH\n`\n```shell\nunmarked version\n```\n\nRun `skhd` in debugging mode and test keyboard input\n\n```shell\npkill skhd\nskhd -V\n\n# when complete with debugging, restart the skhd service\nskhd --start-service\n```\n\nRefer to [`skhd`'s documentation](https://github.com/koekeishiya/skhd/issues/1) on how to discover keycodes.\n\nIf unmarked is unable to mark a window, this may be a fault with yabai. Ensure\nyabai is able to generate a JSON representation of the window object.\n\n```shell\nsleep 5 \u0026\u0026 yabai -m query --windows --window\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshalomb%2Funmarked","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshalomb%2Funmarked","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshalomb%2Funmarked/lists"}