{"id":15356770,"url":"https://github.com/hoothin/rustclock","last_synced_at":"2025-04-07T11:06:16.950Z","repository":{"id":169249910,"uuid":"645162379","full_name":"hoothin/RustClock","owner":"hoothin","description":"A digital clock for desktop popup every half hour written in rust, support 20-20-20 rule. 每隔半小時彈出一次的桌面電子時鐘 Windows / Mac","archived":false,"fork":false,"pushed_at":"2023-10-21T07:49:06.000Z","size":1812,"stargazers_count":345,"open_issues_count":10,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T09:06:22.716Z","etag":null,"topics":["20-20-20-rule","analog-clock","clock","digital-clock","egui","macos","rust","windows"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hoothin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"hoothin","custom":["https://paypal.me/hoothin","https://afdian.net/a/hoothin","https://smms.app/image/lEqKWLHG7UBO6AY"]}},"created_at":"2023-05-25T04:04:52.000Z","updated_at":"2025-03-01T03:56:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4b9541c-afe4-43da-b32e-0a5ff36e87dd","html_url":"https://github.com/hoothin/RustClock","commit_stats":{"total_commits":69,"total_committers":1,"mean_commits":69.0,"dds":0.0,"last_synced_commit":"a2dcc767b7d0aa2c6005136f22db3624eaaf367e"},"previous_names":["hoothin/rustclock"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoothin%2FRustClock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoothin%2FRustClock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoothin%2FRustClock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoothin%2FRustClock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoothin","download_url":"https://codeload.github.com/hoothin/RustClock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640462,"owners_count":20971557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["20-20-20-rule","analog-clock","clock","digital-clock","egui","macos","rust","windows"],"created_at":"2024-10-01T12:29:53.774Z","updated_at":"2025-04-07T11:06:16.926Z","avatar_url":"https://github.com/hoothin.png","language":"Rust","readme":"# Rust Clock \n[![license](https://img.shields.io/badge/license-MIT-red.svg)](https://github.com/hoothin/RustClock/releases/tag/0.1.5) [![download](https://img.shields.io/github/downloads/hoothin/RustClock/total)](https://github.com/hoothin/RustClock/releases/tag/0.1.5)\n\n[**📧Mail Me**](mailto:rixixi@gmail.com)\n\nClock popup every half hour. Build with [rust](https://github.com/rust-lang/rust)|[egui](https://github.com/emilk/egui/)|[rodio](https://github.com/RustAudio/rodio)|[tray-icon](https://github.com/tauri-apps/tray-icon)|[chrono](https://github.com/chronotope/chrono)|[rust-ini](https://github.com/zonyitoo/rust-ini)\n\n![example](pic.gif)\n# Install\n+ [Release](https://github.com/hoothin/RustClock/releases/tag/0.1.5)\n+ Homebrew\n``` bash\nbrew install hoothin/rust_clock/rust_clock\n```\n\n# Config\nEdit the conf.ini beside rust_clock, delete `#`.\n\u003e 編輯可執行文件旁的 conf.ini，去除对应项前的注释符号`#`。\n## TOC\n1. [time 時刻](#time)\n2. [sound 音效](#sound)\n3. [countdown 倒計時](#countdown)\n4. [pos 位置](#pos)\n5. [color 顔色](#color)\n6. [show_time 駐留時間](#show_time)\n7. [tips 提示文字](#tips)\n8. [font_path 提示字體](#font_path)\n9. [bg 背景圖](#bg)\n10. [init_show 啓動時顯示](#init_show)\n11. [timezone 時區](#timezone)\n12. [time_font 時間數字字體](#time_font)\n13. [round 圓角](#round)\n14. [time_countdown 定點倒計時](#time_countdown)\n\n---\n\n+ time\n\u003ca id=\"time\"\u003e\u003c/a\u003e\n\u003e The time when rust clock will popup, set by `hour:minute:second`. Split multi-time by `,`.\n\u003e \n\u003e 設置 rust clock 彈出的時刻，使用 `時:分:秒` 的格式，多個時刻使用 `,` 分隔。彈出時無視倒計時。\n``` ini\n# popup every half hour per clock\n# 每個鐘頭的 30 分鐘彈出\ntime=:30:\n```\n``` ini\n# popup every half hour and every beginning of minute in 15 o'clock\n# 每個鐘頭的 30 分鐘與 15 點整彈出\ntime=:30:,15::0\n```\n+ sound\n\u003ca id=\"sound\"\u003e\u003c/a\u003e\n\u003e The sound file you wish to play when clock popup.\n\u003e\n\u003e 彈出時播放的音效文件\n``` ini\n# play sound.ogg when popup\n# 彈出時播放同目錄下的 sound.ogg 文件\nsound=sound.ogg\n```\n``` ini\n# play assets/1.mp3 when reaches first time you set，play assets/2.mp3 when reaches second time you set.\n# 設定的第一個報時播放 assets/1.mp3，設定的第二個報時播放 assets/2.mp3\nsound=assets/1.mp3|assets/2.mp3\n```\n``` ini\n# Increase the countdown sound effect on the above basis, play assets/3.mp3 when reaches first countdown you set，play assets/4.mp3 when reaches second countdown you set.\n# 在上面的基礎上區分倒計時音效，第一個倒計時播放 assets/3.mp3，第二個倒計時播放 assets/4.mp3\nsound=assets/1.mp3|assets/2.mp3*assets/3.mp3|assets/4.mp3\n```\n+ countdown\n\u003ca id=\"countdown\"\u003e\u003c/a\u003e\n\u003e The countdown time, set by `hour:minute:second`. Split multi-time by `,`.\n\u003e\n\u003e 倒計時，使用 `時:分:秒` 的格式，多個倒計時使用 `,` 分隔。默認為 10 分鐘，開啓後會循環啓動。\n``` ini\n# 20-20-20 Rule 護眼法則\ncountdown=:20:,::20\n```\n+ pos\n\u003ca id=\"pos\"\u003e\u003c/a\u003e\n\u003e The position where will rust clock popup.\n\u003e\n\u003e rust clock 的彈出位置。\n``` ini\n# popup from right side of screen, 20% top of screen height.\n# 在屏幕右側彈出，彈出位置距離屏幕頂部 20% 高度\npos=right,20%\n```\n+ color\n\u003ca id=\"color\"\u003e\u003c/a\u003e\n\u003e The color of rust clock. Format by r,g,b or r,g,b,a\n\u003e\n\u003e rust clock 各個位置的顔色。格式為 r,g,b 或者 r,g,b,a\n``` ini\n# Color of background.\n# 背景顏色\nbg_color=207,210,206,200\n\n# Color of border.\n# 邊框顏色\nborder_color=91,105,114\n\n# Color of number background.\n# 數字背景顏色\nnumber_bg_color=235,235,235\n\n# Color of number.\n# 數字顏色\nnumber_color=0,0,0\n\n# Color of clock circle background.\n# 鐘面背景顏色\nclock_bg_color=235,235,235\n```\n+ show_time\n\u003ca id=\"show_time\"\u003e\u003c/a\u003e\n\u003e The time that how long the popup will last. Set in milliseconds\n\u003e\n\u003e 彈出后持續顯示時長，按毫秒計算\n``` ini\n# Continuous display for 1000 milliseconds after pop-up\n# 彈出后持續顯示 1000 毫秒\nshow_time=1000\n```\n+ tips\n\u003ca id=\"tips\"\u003e\u003c/a\u003e\n\u003e Text displayed when pop-up, format as same as `sound`\n\u003e\n\u003e 彈出后顯示的文字，格式同 `sound`，可設置多個\n``` ini\n# display 'by the grave and thee' when pop-up\n# 彈出時顯示 'by the grave and thee'\ntips=by the grave and thee\n```\n+ font_path\n\u003ca id=\"font_path\"\u003e\u003c/a\u003e\n\u003e The font path which is used by tips\n\u003e\n\u003e 彈出文字使用的字體路徑\n``` ini\n# use font which is located in 'C:/Windows/Fonts/zongyi.TTF'\n# 使用位於 'C:/Windows/Fonts/zongyi.TTF' 的字體\nfont_path=C:/Windows/Fonts/zongyi.TTF\n```\n+ bg\n\u003ca id=\"bg\"\u003e\u003c/a\u003e\n\u003e The path of background image, 80\\*80 for clock, 320\\*100 for total background\n\u003e\n\u003e 背景圖片的路徑，尺寸為 80\\*80 時設置為鐘面背景，尺寸為 320\\*100 時設置為整體背景\n``` ini\nbg=assets/bg.png\n```\n+ init_show\n\u003ca id=\"init_show\"\u003e\u003c/a\u003e\n\u003e Show clock after initialization, 0 means disable, 1 means enable\n\u003e\n\u003e 啓動后立即顯示，0 為禁用顯示，1 為啓用\n``` ini\ninit_show=0\n```\n+ timezone\n\u003ca id=\"timezone\"\u003e\u003c/a\u003e\n\u003e Timezone of clock, from -12 to +12\n\u003e\n\u003e 時區，從 -12（西12區） 到 +12（東12區）\n``` ini\ntimezone=+9\n```\n+ time_font\n\u003ca id=\"time_font\"\u003e\u003c/a\u003e\n\u003e The font path which is used by time number\n\u003e\n\u003e 時刻數字使用的字體路徑\n``` ini\ntime_font=C:/Windows/Fonts/zongyi.TTF\n```\n+ round\n\u003ca id=\"round\"\u003e\u003c/a\u003e\n\u003e Round the corners of frame, 0 means no\n\u003e\n\u003e 是否使用圓角邊框，0 為 否\n``` ini\nround=0\n```\n+ time_countdown\n\u003ca id=\"time_countdown\"\u003e\u003c/a\u003e\n\u003e Show countdown until reach first full-set `time`, the difference from `countdown` is that this item displays a countdown to a fixed time point, rather than a cyclic countdown from the startup time, 1 means enable\n\u003e\n\u003e 顯示直到`time`中第一個時分秒都完整設置時間的倒計時，1 為啓用，與`countdown`的區別為此項顯示到固定時間點的倒計時，而非自啓動時間起的循環倒計時\n``` ini\ntime_countdown=1\n```\n","funding_links":["https://ko-fi.com/hoothin","https://paypal.me/hoothin","https://afdian.net/a/hoothin","https://smms.app/image/lEqKWLHG7UBO6AY"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoothin%2Frustclock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoothin%2Frustclock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoothin%2Frustclock/lists"}