{"id":13588315,"url":"https://github.com/jesse-c/AppearanceNotifier","last_synced_at":"2025-04-08T03:33:21.756Z","repository":{"id":95996184,"uuid":"373102683","full_name":"jesse-c/AppearanceNotifier","owner":"jesse-c","description":"This application listens for when the macOS interface theme changes and then does some thing(s). For now, it's hardcoded to switching my kitty and Neovim themes to match the new theme.","archived":false,"fork":false,"pushed_at":"2024-05-21T21:40:17.000Z","size":58,"stargazers_count":48,"open_issues_count":7,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-31T17:07:26.624Z","etag":null,"topics":["kitty","macos","neovim"],"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/jesse-c.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":"2021-06-02T09:05:41.000Z","updated_at":"2024-08-04T03:04:20.000Z","dependencies_parsed_at":"2023-03-27T17:56:52.759Z","dependency_job_id":"f932f280-0d6c-44c9-9fe1-d68b94d9c919","html_url":"https://github.com/jesse-c/AppearanceNotifier","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesse-c%2FAppearanceNotifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesse-c%2FAppearanceNotifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesse-c%2FAppearanceNotifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesse-c%2FAppearanceNotifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jesse-c","download_url":"https://codeload.github.com/jesse-c/AppearanceNotifier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223300739,"owners_count":17122679,"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":["kitty","macos","neovim"],"created_at":"2024-08-01T15:06:37.868Z","updated_at":"2024-11-06T07:31:19.580Z","avatar_url":"https://github.com/jesse-c.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"\u003cdiv align='center'\u003e\n  \u003ch1\u003eAppearance Notifier\u003c/h1\u003e\u003cbr\u003e\n\u003c/div\u003e\n\nThis application listens for when the macOS interface theme changes and then _does some thing(s)_. For now, it's hardcoded to switching my kitty and Neovim themes to match the new theme.\n\nIdeally the different things themselves would handle this themselves, as others do.\n\nAlternative:\n\nUse HammerSpoon and hook into the same event. For example: https://github.com/jesse-c/dotfiles/commit/1f0e4d1be732f3397ed9f9d892fe71890fbcc2d2.\n\n## Demo\n\n![appearancenotifier-demo-with-kitty-neovim](https://user-images.githubusercontent.com/1405676/121757359-d2b42700-cb0c-11eb-8db1-47d91aa5196c.gif)\n\nNB: This demo is from a 2012 13\" MacBook Pro.\n\n## Installation\n\n### Binaries\n\n1. Download the latest version from the Releases page.\n2. Move it to your path.\n\n### From source\n\n1. `$ git clone git@github.com:jesse-c/AppearanceNotifier.git`\n2. `$ swift build --configuration release`.\n3. `$ mv .build/x86_64-apple-macosx/release/AppearanceNotifier /usr/local/bin/`\n\n## Usage\n\nYou'll need to adapt the `respond` function for your local machine's setup.\n\nRun the compiled binary (e.g. `$ AppearanceNotifier`). You'll need to leave this running.\n\n### Autostart\n\nTo have it autostart at login, you can use `launchd`, with the provided job definition. Copy it to the right location (e.g. `$ cp com.jesseclaven.appearancenotifier.plist ~/Library/LaunchAgents/`).\n\n## Dependencies\n\n**Neovim**\n\n[nvim-remote](https://github.com/mhinz/neovim-remote) (aka `nvr`) is used for controlling the Neovim instances.\n\n**kitty**\n\nFor kitty to receive remote commands, you'll need to update your config to have:\n\n```\nallow_remote_control true\n```\n\n**kitty / tmux**\n\nIf you're using kitty with tmux, you'll need to explicitly set the socket that kitty listens on, since if you run the command from within tmux, kitty won't pick up on it.\n\nHow you do this depends on how you start kitty.\n\nIf you're starting it from the application icon, you need to set the launch arguments in your kitty config folder. For example, in `~/.config/kitty/macos-launch-services-cmdline` I have:\n\n```\n--listen-on unix:/tmp/kitty\n```\n\nNB: If you don't open kitty directly from the application (for example, if you're using Raycast), then it won't pick up these launch arguments.\n\nNB: I haven't tested this with more than 1 kitty window.\n\n**Emacs**\n\nYou'll need to have the server running.\n\n**Helix**\n\nNo specific setup is needed.\n\n## FAQ\n\nQ. What if my laptop is asleep and it passes sunrise/sunset?\n\nA. From what I've observed, my laptop has already switched, or does so immediately, after I directly wake it up.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesse-c%2FAppearanceNotifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjesse-c%2FAppearanceNotifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesse-c%2FAppearanceNotifier/lists"}