12 个稳定版本 (3 个主要版本)

3.1.2 2024年8月7日
3.0.0 2023年7月22日
2.0.2 2023年1月3日
2.0.1 2022年12月28日
0.1.3 2021年4月19日

#79 in 日期和时间

Download history 3/week @ 2024-04-27 296/week @ 2024-08-03 16/week @ 2024-08-10

每月312次下载

GPL-3.0-only

160KB
379

zman

Sponsor me

demo


zman 是一个小巧、快速且仅包含单个二进制的 CLI 年度(时间)进度工具。

功能

  • 显示年度进度
  • 显示月度和周进度
  • 以 JSON 格式显示结果
  • 跨平台

使用示例

zman                                Show a year progress bar
zman month                          ... a month progress bar
zman week                           ... a week progress bar
zman year --json                    ... a year progress bar with JSON format

与其他程序集成

使用 zman 与 i3status-rust

您可以使用 Zman 与 i3status-rust 来在状态栏中显示时间段。

i3status-rust-zman

i3status-rust 配置示例

[[block]]
block = "custom"
cycle = ["zman year -J", "zman month -J"]
on_click = "<command>"
interval = 300
json = true

其他工具

请查看 更多示例 了解其他变体。

如果您想支持您最喜欢的状态栏,请提交有关状态栏有效输入的有效问题。在 i3status-rust 中,有效输入将是 {"icon": "ICON", "state": "STATE", "text": "YOURTEXT"}

安装

从二进制文件

发布页面 包含了适用于 GNU/Linux、macOS 和 Windows 的预编译二进制文件。

从源代码

使用 cargo-binstall

cargo binstall bilal

使用 Rust 的包管理器 cargo,您可以通过以下方式安装 fd:

cargo install zman

开发

git clone https://github.com/azzamsa/zman

# Build
cd zman
cargo build

# Run unit tests and integration tests
cargo test

# Install
cargo install --path .

贡献

要了解更多信息,请阅读 contributing.md

名称的来源

Zman 是阿拉伯语/土耳其语中的“时间”。

灵感来源

请查看这些以前的工作,它们帮助启发 zman 的创建。

许可证

版权所有 (c) 2020-2023 azzamsa

zman 在 GPL v3 许可证的条款下分发。

有关详细信息,请参阅 LICENSE

依赖项

约 4.5MB
约 70K SLoC