/sway-clock-rs

A trivial clock implementation, which might be used for Sway.

Primary LanguageRustApache License 2.0Apache-2.0

Sway-Clock

A trivial clock implementation, which might be used for Sway.

Installation

cargo install --prefix .

Configuration

Put the following in ~/.config/sway/config:

bar {
    # ...

    status_command sway-clock '"%Y-%m-%d %l:%M:%S %p"'

    # ...
}

(Optional) Run in Docker container ;-)

RUSTFLAGS="-C target-feature=+crt-static" cargo build --release
docker build --tag <image-name> .
docker run --rm --init <image-name>

License

Licensed under either of