From 1fdf111b86c6dd30576b6ad6beccb771fb24552f Mon Sep 17 00:00:00 2001 From: mapleafgo Date: Mon, 30 Dec 2024 18:21:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=86=84=E5=B1=8F=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/browser/browser.go | 2 +- todo.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/browser/browser.go b/pkg/browser/browser.go index d1073b5..68f3eec 100644 --- a/pkg/browser/browser.go +++ b/pkg/browser/browser.go @@ -27,7 +27,7 @@ func OpenApp(c context.Context, url string) { s := make(chan struct{}) wait := b.EachEvent(func(e *proto.TargetTargetDestroyed) { - zap.S().Infoln("关闭待机网页") + zap.S().Infoln("浏览器关闭事件") s <- struct{}{} }) go wait() diff --git a/todo.md b/todo.md index 0da090b..b82770b 100644 --- a/todo.md +++ b/todo.md @@ -114,10 +114,12 @@ sudo apt install unclutter 编辑 `~/.config/i3/config`,添加如下行: ```bash exec --no-startup-id unclutter -root # 隐藏鼠标 -exec --no-startup-id xset -dpms # 关闭屏幕自动关闭 +exec --no-startup-id xset dpms 0 0 0 # 关闭屏幕自动关闭 exec --no-startup-id xset s off # 关闭屏幕保护 ``` +不使用 `xset -dpms` 来禁用屏幕自动关闭,因为当使用 `xset dpms force off` 或 `xset dpms force on` 时,会导致禁用失效 + ### 安装中文字体和 emoji 字体 ```bash