dark-notify
rust-dark-light
dark-notify | rust-dark-light | |
---|---|---|
4 | 2 | |
169 | 70 | |
- | - | |
0.0 | 5.5 | |
about 1 year ago | 18 days ago | |
Rust | Rust | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dark-notify
-
How to detect dark/light/system mode in macos and windows?
I found this neovim plugin for macos https://github.com/cormacrelf/dark-notify that does exactly that, looking at the source code, it spawn a new macos application and looks for changes
-
Is there a way for neovim to know my terminal background color?
I use https://github.com/cormacrelf/dark-notify
-
Emacs’s Builtin Elisp Cheat Sheet
> I'd say that's kinda a big selling point of Emacs though: you can write elisp code to make anything you do (not just writing code) less of a pain.
I agree in principle, but in practice, I find myself writing a lot of ELisp just to work around Emacs' shortcomings. E.g. on macOS, to support dark/light theme switching integrated with the rest of the system, I need an external program[0], a shell script to tell that program to call emacsclient, a LaunchAgent to keep it running, an unholy build of Emacs with all of the GNU-unapproved Cocoa integrations that some kind soul is maintaining, and only THEN a piece of ELisp (which is also calling out to AppleScript) to actually change the theme[1]. And as I wrote this, I realised half of this glue didn't even make it into version control.
[0]: https://github.com/cormacrelf/dark-notify
[1]: https://github.com/rollcat/dotfiles/blob/7f6a6d7/.emacs.d/in...
I've been using Emacs for about 20 years, and with every passing year I just wish there was *less* ELisp for me to think about. The actual useful customisations (like adding the +x bit on shell scripts) are few and far between, most of it is just glue and fixes.
-
'set bg=light/dark' on the fly not fixed yet?
If you’re struggling with background toggling, I suggest having a look at https://github.com/cormacrelf/dark-notify. Its Lua plugin doesn’t require macOS, it can be used through a mapping as a generic background toggler between two different schemes, and you get to run arbitrary code when it does toggle, which is useful for integration with themed status bars etc.
rust-dark-light
-
How to detect dark/light/system mode in macos and windows?
I found this :- https://github.com/frewsxcv/rust-dark-light.
-
[Media] egui with system theme colors
On a related note, last week I was working on a crate to detect light/dark mode cross platform: https://github.com/frewsxcv/rust-dark-light/pull/6
What are some alternatives?
Shade.nvim - An Nvim lua plugin that dims your inactive windows
neovim-gtk - gtk ui for neovim
dotfiles - My dotfiles: macOS, OpenBSD, Linux. Setup: git init; git remote add github https://github.com/rollcat/dotfiles; git pull github master
emacs-buttercup - Behavior-Driven Emacs Lisp Testing
treemacs
neovide - No Nonsense Neovim Client in Rust
prelude - Prelude is an enhanced Emacs 25.1+ distribution that should make your experience with Emacs both more pleasant and more powerful.
magit - It's Magit! A Git Porcelain inside Emacs.
neovim - Vim-fork focused on extensibility and usability
straight.el - 🍀 Next-generation, purely functional package manager for the Emacs hacker.