A trivial clock implementation, which might be used for Sway.
cargo install --prefix .
Put the following in ~/.config/sway/config
:
bar {
# ...
status_command sway-clock '"%Y-%m-%d %l:%M:%S %p"'
# ...
}
RUSTFLAGS="-C target-feature=+crt-static" cargo build --release
docker build --tag <image-name> .
docker run --rm --init <image-name>
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)