熄屏问题修复

This commit is contained in:
2024-12-30 18:21:08 +08:00
parent 8aa502b734
commit 1fdf111b86
2 changed files with 4 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ func OpenApp(c context.Context, url string) {
s := make(chan struct{}) s := make(chan struct{})
wait := b.EachEvent(func(e *proto.TargetTargetDestroyed) { wait := b.EachEvent(func(e *proto.TargetTargetDestroyed) {
zap.S().Infoln("关闭待机网页") zap.S().Infoln("浏览器关闭事件")
s <- struct{}{} s <- struct{}{}
}) })
go wait() go wait()

View File

@@ -114,10 +114,12 @@ sudo apt install unclutter
编辑 `~/.config/i3/config`,添加如下行: 编辑 `~/.config/i3/config`,添加如下行:
```bash ```bash
exec --no-startup-id unclutter -root # 隐藏鼠标 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 # 关闭屏幕保护 exec --no-startup-id xset s off # 关闭屏幕保护
``` ```
不使用 `xset -dpms` 来禁用屏幕自动关闭,因为当使用 `xset dpms force off` 或 `xset dpms force on` 时,会导致禁用失效
### 安装中文字体和 emoji 字体 ### 安装中文字体和 emoji 字体
```bash ```bash