Skip to content

Repository files navigation

屏幕保持唤醒 ☁️

一个可爱的跨平台小工具:点击云朵按钮,让电脑暂时保持清醒;再次点击,恢复系统原本的休眠设定。云朵睁开眼睛代表开启,闭上眼睛代表关闭。

简体中文

目的

有时我们需要让电脑长时间保持开启,例如下载文件、播放音乐、展示作品、进行演示,或等待一个较长的任务完成。这个项目把隐藏在系统设定里的功能变成一个简单、可爱的按钮。

可直接下载的版本

  • Mac:Apple Silicon(M1、M2、M3、M4)+ macOS 13 Ventura 或更新版本;下载 .app.zip,解压后双击即可,不需要安装。
  • Windows:Windows 10 或 Windows 11(64 位);下载 .exe 后双击即可,不需要安装 Python 或其他套件。
  • Linux:x86_64、glibc 2.35 或更新版本,建议 Ubuntu 22.04+、Debian 12+、Fedora 39+ 等使用 systemd 的发行版;下载后直接运行,不需要安装。

请到 Latest Release 下载对应文件:CuteStayAwake-macOS.zipCuteStayAwake-Windows.exeCuteStayAwake-Linux

功能

  • 按钮关闭:云朵闭上眼睛,电脑跟随原本的系统休眠设定。
  • 按钮开启:云朵睁开眼睛,暂时阻止电脑自动休眠。
  • 支持简体中文、繁體中文、English、日本語切换。
  • 支持一直保持、15 分钟、30 分钟、1 小时、2 小时计时,到时自动关闭。
  • 手动锁定屏幕仍然有效。
  • Windows 使用系统防休眠接口;Linux 使用 systemd-inhibit

使用方式

下载对应系统的文件,解压(如果是 zip)后直接打开。Linux 如果文件管理器没有执行权限,可以运行:

chmod +x CuteStayAwake-Linux
./CuteStayAwake-Linux

Windows 版本未进行代码签名,第一次打开时若出现 SmartScreen 提示,请确认文件来自本项目后选择“更多信息”再运行。Linux 非 systemd 发行版可能无法阻止系统休眠。

欢迎大家评论 💬

欢迎在 Issues 留言、分享体验、提出改进建议,或告诉我你希望这朵云朵加入什么新动作。欢迎使用简体中文、繁體中文、English 或日本語留言。喜欢的话,也欢迎点 Star!

从源码运行

跨平台源码是 CuteStayAwake.py,使用 Python 3.10+ 自带的 Tkinter;Windows/Linux 便携版由 GitHub Actions 自动构建。Mac 原生版本是 StayAwake.swift,使用 macOS 自带的 Swift 和 AppKit。

python3 CuteStayAwake.py

许可证:MIT License。

繁體中文

目的

有時候我們需要讓電腦長時間保持開啟,例如下載檔案、播放音樂、展示作品、進行演示,或等待較長的任務完成。這個專案把系統設定裡的功能變成一個簡單、可愛的按鈕。

可直接下載的版本

  • Mac:Apple Silicon(M1、M2、M3、M4)+ macOS 13 Ventura 或更新版本;下載 .app.zip,解壓縮後雙擊開啟,不需要安裝。
  • Windows:Windows 10 或 Windows 11(64 位元);下載 .exe 後雙擊即可,不需要安裝 Python 或其他套件。
  • Linux:x86_64、glibc 2.35 或更新版本,建議 Ubuntu 22.04+、Debian 12+、Fedora 39+ 等使用 systemd 的發行版;下載後直接執行,不需要安裝。

請到 Latest Release 下載對應檔案:CuteStayAwake-macOS.zipCuteStayAwake-Windows.exeCuteStayAwake-Linux

功能

  • 按鈕關閉:雲朵閉上眼睛,電腦跟隨原本的系統休眠設定。
  • 按鈕開啟:雲朵睜開眼睛,暫時阻止電腦自動休眠。
  • 支援繁體中文、簡體中文、English、日本語切換。
  • 支援一直保持、15 分鐘、30 分鐘、1 小時、2 小時計時,到時自動關閉。
  • 手動鎖定螢幕仍然有效。
  • Windows 使用系統防休眠介面;Linux 使用 systemd-inhibit

使用方式

下載對應系統的檔案,解壓縮(如果是 zip)後直接開啟。Linux 如果檔案管理器沒有執行權限,可以執行:

chmod +x CuteStayAwake-Linux
./CuteStayAwake-Linux

Windows 版本尚未進行程式碼簽署,第一次開啟若出現 SmartScreen 提示,確認檔案來自本專案後選擇「更多資訊」再執行。非 systemd 的 Linux 發行版可能無法阻止系統休眠。

歡迎大家留言 💬

歡迎在 Issues 留言、分享使用體驗、提出改進建議,或告訴我你希望這朵雲朵加入什麼新動作。歡迎使用繁體中文、簡體中文、English 或日本語留言。喜歡的話,也歡迎點 Star!

從原始碼執行

跨平台原始碼是 CuteStayAwake.py,使用 Python 3.10+ 內建的 Tkinter;Windows/Linux 便攜版由 GitHub Actions 自動建置。Mac 原生版本是 StayAwake.swift,使用 macOS 內建的 Swift 和 AppKit。

python3 CuteStayAwake.py

授權條款:MIT License。

English

Purpose

Sometimes a computer needs to stay on for a long task: downloading files, playing music, showing artwork, presenting slides, or waiting for a process to finish. This project turns a hidden system setting into one simple, friendly button. The cloud opens its eyes when it is on and closes its eyes when it is off.

Ready-to-use downloads

  • Mac: Apple Silicon (M1, M2, M3, or M4) with macOS 13 Ventura or newer; download the .app.zip, unzip it, and double-click. No installation required.
  • Windows: Windows 10 or Windows 11 (64-bit); download the .exe and double-click. No Python or additional packages required.
  • Linux: x86_64 with glibc 2.35 or newer; Ubuntu 22.04+, Debian 12+, Fedora 39+, and other systemd-based distributions are recommended. Download and run it without installation.

Download the matching file from Latest Release: CuteStayAwake-macOS.zip, CuteStayAwake-Windows.exe, or CuteStayAwake-Linux.

Features

  • Off: the cloud closes its eyes and the computer follows its normal sleep settings.
  • On: the cloud opens its eyes and temporarily prevents automatic sleep.
  • Switch between Traditional Chinese, Simplified Chinese, English, and Japanese.
  • Choose until manually turned off, 15 minutes, 30 minutes, 1 hour, or 2 hours.
  • Manual screen locking still works.
  • Windows uses the native awake API; Linux uses systemd-inhibit.

How to use

Download the file for your system and unzip it if necessary. On Linux, if your file manager does not mark it executable, run:

chmod +x CuteStayAwake-Linux
./CuteStayAwake-Linux

The Windows build is not code-signed. If SmartScreen appears on the first launch, confirm that the file came from this project, choose “More info,” and run it. Non-systemd Linux distributions may not be able to block system sleep.

Comments welcome 💬

Please leave comments in Issues, share your experience, suggest improvements, or tell me what new actions you would like this cloud to have. Comments in English, 日本語, 繁體中文, or 简体中文 are welcome. If you like it, a Star would be lovely!

Run from source

The cross-platform source is CuteStayAwake.py and uses Tkinter included with Python 3.10+. Portable Windows/Linux files are built automatically by GitHub Actions. The native Mac edition is StayAwake.swift, built with Swift and AppKit included with macOS.

python3 CuteStayAwake.py

License: MIT License.

日本語

目的

ファイルのダウンロード、音楽の再生、作品の表示、プレゼンテーション、長い処理の待機など、パソコンを長時間起動したままにしたい場面があります。このプロジェクトは、システム設定の中にある機能を、シンプルでかわいいボタンにします。オンにすると雲が目を開き、オフにすると目を閉じます。

すぐ使えるダウンロード

  • Mac:Apple Silicon(M1、M2、M3、M4)+ macOS 13 Ventura 以降。.app.zip をダウンロードして解凍し、ダブルクリックしてください。インストール不要です。
  • Windows:Windows 10 または Windows 11(64-bit)。.exe をダウンロードしてダブルクリックしてください。Python などの追加インストールは不要です。
  • Linux:x86_64、glibc 2.35 以降。Ubuntu 22.04+、Debian 12+、Fedora 39+ など systemd を使う環境を推奨します。ダウンロードしてそのまま実行できます。

Latest Release から、CuteStayAwake-macOS.zipCuteStayAwake-Windows.exe、または CuteStayAwake-Linux を選んでください。

機能

  • オフ:雲が目を閉じ、パソコンは通常のスリープ設定に従います。
  • オン:雲が目を開き、自動スリープを一時的に防ぎます。
  • 繁體中文、簡体中文、English、日本語を切り替え可能です。
  • 手動でオフにするまで、15 分、30 分、1 時間、2 時間のタイマーに対応します。
  • 手動ロックはそのまま使用できます。
  • Windows はシステム標準 API、Linux は systemd-inhibit を使用します。

使い方

使用するシステムのファイルをダウンロードし、必要なら解凍してダブルクリックしてください。Linux で実行権限がない場合は、次を実行します:

chmod +x CuteStayAwake-Linux
./CuteStayAwake-Linux

Windows 版はコード署名されていません。初回起動時に SmartScreen が表示された場合は、プロジェクトから取得したファイルであることを確認し、「詳細情報」から実行してください。systemd 以外の Linux ではスリープを防止できない場合があります。

コメント歓迎 💬

Issues でコメント、使用感、改善案、新機能の提案を歓迎します。日本語、English、繁體中文、簡体中文のどの言語でも歓迎します。気に入ったら Star もお願いします!

ソースから実行

クロスプラットフォーム版のソースは CuteStayAwake.py です。Python 3.10+ に付属する Tkinter を使用します。Windows/Linux のポータブル版は GitHub Actions が自動的にビルドします。Mac のネイティブ版は StayAwake.swift で、macOS 付属の Swift と AppKit を使用します。

python3 CuteStayAwake.py

ライセンス:MIT License。

Search keywords

macOS stay awake, Windows prevent sleep, Linux prevent sleep, keep computer awake, cute desktop utility, stay-awake, prevent-sleep, macos-app, multilingual, Swift, Python

About

可爱的 macOS 保持清醒按钮|Cute macOS stay-awake button|かわいい Mac のスリープ防止ボタン|支援简体中文、繁體中文、English、日本語,欢迎留言。

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages