LionyxML / auto-dark-emacs

Auto-Dark-Emacs is an auto changer between 2 themes, dark/light, following MacOS, Linux or Windows Dark Mode settings
GNU General Public License v2.0
156 stars 35 forks source link

Add a `manual` detection mode #73

Open sellout opened 1 month ago

sellout commented 1 month ago

I want a way for Auto-Dark to manage the pairs of themes & hooks, but to not do any auto-detection of system mode changes.

This is useful for testing, but also for niche systems that don’t have any of the existing systems. This is already possible, but some changes to make it more ergonomic:

[^1]: I prefer using nil for manual mode (read as “there is no detection method”), but perhaps it’s desirable to have a case where re-enabling the theme tries to re-detect the method (as it does now). I think I would prefer having a public auto-dark-determine-detection-method command that users can explicitly call if they want to re-detect.

sellout commented 1 month ago

Ah, and manual mode should also not run the timer.

LionyxML commented 1 month ago

Thanks again for all this work @sellout ! Great great stuff here!

I think the pipeline passed: https://garnix.io/commit/988121d61e1770cac4105b04218c19fa4c7126b8

Is there a way to make garnix integrated with github? So everybody can see the status? Like a badge or some integration with github actions?

sellout commented 1 month ago

Is there a way to make garnix integrated with github? So everybody can see the status? Like a badge or some integration with github actions?

Yeah, both of those things – you’ll need to authorize the garnix app (https://github.com/apps/garnix-ci), which then gives you GitHub checks for garnix CI and [![built with garnix](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fgarnix.io%2Fapi%2Fbadges%2FLionyxML%2Fauto-dark-emacs)](https://garnix.io/repo/LionyxML/auto-dark-emacs) will give you a badge (with useful information once the app is authorized).

LionyxML commented 3 weeks ago

Noice!

Just added them to the development branch.