{"id":18904365,"url":"https://github.com/relikd/memmon","last_synced_at":"2025-10-24T01:35:45.066Z","repository":{"id":42475877,"uuid":"416117674","full_name":"relikd/Memmon","owner":"relikd","description":"A simple daemon that restores your window positions on external monitors.","archived":false,"fork":false,"pushed_at":"2022-06-02T08:07:02.000Z","size":28,"stargazers_count":149,"open_issues_count":9,"forks_count":5,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-28T15:21:32.187Z","etag":null,"topics":["daemon","macos","monitor","restore","screen","swift","window","window-manager"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/relikd.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":"2021-10-11T23:37:36.000Z","updated_at":"2025-03-28T02:07:41.000Z","dependencies_parsed_at":"2022-08-19T08:51:43.383Z","dependency_job_id":null,"html_url":"https://github.com/relikd/Memmon","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relikd%2FMemmon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relikd%2FMemmon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relikd%2FMemmon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relikd%2FMemmon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/relikd","download_url":"https://codeload.github.com/relikd/Memmon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249002580,"owners_count":21196644,"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":["daemon","macos","monitor","restore","screen","swift","window","window-manager"],"created_at":"2024-11-08T09:08:11.588Z","updated_at":"2025-10-24T01:35:44.994Z","avatar_url":"https://github.com/relikd.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![macOS 10.10+](https://img.shields.io/badge/macOS-10.10+-888)](#install)\n[![Current release](https://img.shields.io/github/release/relikd/Memmon)](https://github.com/relikd/Memmon/releases)\n[![All downloads](https://img.shields.io/github/downloads/relikd/Memmon/total)](https://github.com/relikd/Memmon/releases)\n\n\u003cimg src=\"img/icon.svg\" width=\"180\" height=\"180\"\u003e\n\n# Memmon\n\nMemmon remembers what your Mac forgets – A simple deamon that restores your window positions on external monitors.\n\n**Limitations:**\n- Currently, Memmon restores windows in other spaces only if the space is activated.\n  If you know a way to access the accessibility settings of a different space, let me know.\n- Support for the Misson Control config option “Displays have separate Spaces” is not tested.\n  I will add support for this as soon as I have access to an external monitor again (issue [#5](https://github.com/relikd/Memmon/issues/5#issuecomment-1040611494)).\n\n\n## Install\n\n1. You will need macOS 10.10 or newer.\n   Download and unzip the tar.gz from [latest release](https://github.com/relikd/Memmon/releases/latest).\n2. Grant Memmon the Accessibility privilege.\n   Go to \"System Preference\" \u003e \"Security \u0026 Privacy\" \u003e \"Accessibility\" and add Memmon to that list.\n   (Otherwise, the app has no purpose as it can't move application windows around.)\n3. Thats it. The app runs in your menu bar.\n\nAlternatively, you can compile Memmon from source by running `make`, or call the script directly (`swift src/main.swift`) without building an app bundle.\n\n\n### Menu Bar Icon\n\nYou can hide the menu bar icon either via `defaults` or the same-titled menu entry.\nIf you do so, the only way to quit the app is by killing the process (with Activity.app or `killall Memmon`).\nThe menu bar icon stays hidden during this execution only. If you restart the OS or app it will reappear (unless you hide the icon with `defaults`).\n\nMemmon has exactly one app-setting, the menu bar icon.\nYou can manipulate the display of the icon, or hide the icon completely:\n\n```sh\n# disable menu bar icon completely\ndefaults write de.relikd.Memmon icon -int 0\n# Use window-dots-icon\ndefaults write de.relikd.Memmon icon -int 1\n# Use monitor-with-windows icon (default)\ndefaults write de.relikd.Memmon icon -int 2\n# re-enable menu bar icon and use default icon\ndefaults delete de.relikd.Memmon icon\n```\n\n![menu bar icons](img/status_icons.png)\n\n\n## FAQ\n\n### Why‽\n\nI am frustrated!\nWhy does my Mac forget all window positions which I moved to a second screen?\nEvery time I unplug the monitor.\nEvery time I close my Macbook lid.\nEvery time I lock my Mac.\n\nIs it macOS 11?\nIs it the USB-C-to-HDMI converter dongle (notably one made by Apple)?\nWhy do I have to fix things that Apple should have fixed long ago? …\n\n\n### Aren't there other solutions?\n\nYes, for example, you can use [Mjolnir](https://github.com/mjolnirapp/mjolnir) or [Hammerspoon](https://github.com/Hammerspoon/hammerspoon) (and some comercial ones) to restore your perfect window setup on a button press.\nBut I do not need a full-fledged window manager or the dependencies it relies on.\nNor do I want to constantly adjust for new windows.\nActually, I don't want to think about this problem at all – I just want to fix this damn bug.\n\n\n### What is it good for?\n\nFirst off, Memmon is less than 300 lines of code – no dependencies.\nYou can audit it in 10 minutes...\nAnd build it from scratch – just run `make`.\n\nSecondly, it does one thing and one thing only:\nSave and restore window positions whenever your monitor setup changes.\n\n\n### Develop\n\nYou can either run the `main.swift` file directly with `swift main.swift`, via Terminal `./main.swift` (`chmod 755 main.swift`), or create a new Xcode project.\nIn Xcode, select the Command-Line template and replace the template provided `main.swift` with this one.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelikd%2Fmemmon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelikd%2Fmemmon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelikd%2Fmemmon/lists"}