No description
|
||
---|---|---|
src | ||
.envrc | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.md | ||
rustfmt.toml |
日の入り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.