No description
Find a file
Vladimir Rubin b2f03f048b
chore: bump version
this new version adds automatic config reloading
2025-04-27 18:00:51 +03:00
src fix: add gamma check for night 2025-04-27 17:58:40 +03:00
.envrc build: add flake.nix 2025-04-24 14:55:59 +03:00
.gitignore build(nix): add nix build support 2025-04-24 15:05:31 +03:00
Cargo.lock chore: bump version 2025-04-27 18:00:51 +03:00
Cargo.toml chore: bump version 2025-04-27 18:00:51 +03:00
flake.lock build: add flake.nix 2025-04-24 14:55:59 +03:00
flake.nix feat: get rid of libnotify 2025-04-27 02:36:32 +03:00
LICENSE docs: add license and readme 2025-04-23 22:08:55 +03:00
README.md feat: add automatic config reloading 2025-04-27 17:56:19 +03:00
rustfmt.toml build: add flake.nix 2025-04-24 14:55:59 +03:00

日の入りsetr

a little daemon to control screen temperature and gamma using hyprsunset

has a unix socket (/tmp/hinoirisetr.sock) that accepts four commands

  • status - prints the current status
  • status_notify - sends the current status via a notification
  • enable - toggles the filter on
  • disable - toggles the filter off
  • toggle - toggles the filter
  • reload - reloads the config

TODO

  • добавить логгинг нормальный
  • избавиться от env_logger и написать свой собственный
  • сделать файл конфига а не блять компайлтайм конфиг(suckless🤢🤢🤮)
  • сделать свой парсер для конфига после serde
  • заебашить автоматический хотрелоад конфига
  • вместо юзания notify-rust напрямую пользоваться libnotify.so и грузить её через dlopen(чтоб бинарник был маленький ваще)
  • переползти с chrono на time потому что мне похуй не нужна суперточность(а мб и на std::time)
  • fix status command crash

Notify: Replaced tokio::sync::Notify with smol::channel::unbounded. The Sender is used to signal, and Receiver is polled in the main loop. UnixListener: Switched to smol::net::UnixListener. Signal Handling: Used signal-hook with smol::spawn for async signal processing. Timers: Replaced tokio::time::sleep with smol::Timer. Main Loop: Used smol::future::or to combine timer and notification events, replacing tokio::select!. Executor: Switched from #[tokio::main] to smol::block_on.