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