{"id":13609725,"url":"https://github.com/jcaw/theme-magic","last_synced_at":"2025-04-25T01:31:36.959Z","repository":{"id":153568685,"uuid":"176750388","full_name":"jcaw/theme-magic","owner":"jcaw","description":"🎨 Apply your Emacs theme to the rest of Linux, using magic. Also works on Mac.","archived":false,"fork":false,"pushed_at":"2019-07-11T20:35:44.000Z","size":15622,"stargazers_count":147,"open_issues_count":6,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T14:40:07.855Z","etag":null,"topics":["ansi-colors","elisp","emacs","linux","linux-theme","pywal","terminal-themes","themes"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcaw.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}},"created_at":"2019-03-20T14:21:24.000Z","updated_at":"2025-03-31T22:11:00.000Z","dependencies_parsed_at":"2023-05-19T17:00:34.997Z","dependency_job_id":null,"html_url":"https://github.com/jcaw/theme-magic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcaw%2Ftheme-magic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcaw%2Ftheme-magic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcaw%2Ftheme-magic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcaw%2Ftheme-magic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcaw","download_url":"https://codeload.github.com/jcaw/theme-magic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250738008,"owners_count":21479116,"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":["ansi-colors","elisp","emacs","linux","linux-theme","pywal","terminal-themes","themes"],"created_at":"2024-08-01T19:01:37.461Z","updated_at":"2025-04-25T01:31:36.545Z","avatar_url":"https://github.com/jcaw.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n          \u003cimg src=\"media/logo.png\" alt=\"theme-magic logo\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n          What's the point in an Emacs theme if the rest of Linux looks different?\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n          Apply your Emacs theme to the rest of Linux, using magic. Also works \u003ca href=\"#macos\"\u003eon Mac\u003c/a\u003e.\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n          \u003c!-- FIXME: Gif is resized. Looks terrible. --\u003e\n          \u003cimg src=\"media/theming-linux-demo.gif\" alt=\"Demonstration of applying the theme to Linux with theme-magic\" /\u003e\n\u003c/p\u003e\n\n## Usage\n\nJust call `M-x` `theme-magic-from-emacs`. theme-magic will extract the colors from your Emacs theme and apply them to the rest of Linux with [Pywal](https://github.com/dylanaraps/pywal).\n\nIf you want the Linux theme to update automatically whenever the Emacs theme is changed, enable the global minor mode `theme-magic-export-theme-mode`. For example:\n\n```emacs-lisp\n(require 'theme-magic)\n(theme-magic-export-theme-mode)\n```\n\nYou can disable auto-updating by disabling the minor mode.\n\n## Installation\n\n### Dependencies\n\nFirst, you must install [Pywal](https://github.com/dylanaraps/pywal) as a dependency. Check if it's installed by calling `wal` in a shell. Make sure Python is installed too.\n\n### Installing `theme-magic` from MELPA\n\n`theme-magic` is [available](http://melpa.org/#/theme-magic) on MELPA. Follow the [instructions](https://melpa.org/#/getting-started) to set up MELPA.\n\nInstall `theme-magic` with `M-x package-install RET theme-magic RET`.\n\n## Footnotes\n\n### Restoring Your Theme\n\n[Pywal](https://github.com/dylanaraps/pywal) only applies your theme to the current session. See its documentation for details. To restore the last theme, call `wal -R` in the shell. To restore your theme automatically, add the following to your `.xprofile` (or whichever dotfile is loaded automatically once your desktop starts up):\n\n```shell\nwal -R\n```\n\n### Setting Your Wallpaper\n\nPywal was designed to generate a color scheme that matches your wallpaper. Because of some quirks in how Pywal works, you have to set the wallpaper before exporting a theme from Emacs, or it will not be saved. Call this command in a shell:\n\n```shell\nwal -i \"path/to/wallpaper.png\"\n```\n\nPywal will set your wallpaper and save it in its cache. Now, you can apply your Emacs theme:\n\n```emacs\nM-x theme-magic-from-emacs\n```\n\nNow, when you call `wal -R`, both the wallpaper and the theme will be set.\n\n### MacOS\n\n`theme-magic` [also works](https://github.com/jcaw/theme-magic/issues/11) on MacOS. iTerm2 should inherit from the exported Emacs theme. You will need to call `wal -R` to refresh when the terminal restarts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcaw%2Ftheme-magic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcaw%2Ftheme-magic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcaw%2Ftheme-magic/lists"}