GlazeWM 使用教程
目录结构及介绍
GlazeWM 项目的目录结构如下:
GlazeWM/
├── GlazeWM.Bar/
├── GlazeWM.Bootstrapper/
├── GlazeWM.Domain/
├── GlazeWM.Infrastructure/
├── .editorconfig
├── .gitattributes
├── .gitignore
├── GlazeWM.sln
├── LICENSE.md
├── README.md
- GlazeWM.Bar: 包含窗口管理器的工具栏相关代码。
- GlazeWM.Bootstrapper: 项目的启动文件所在目录。
- GlazeWM.Domain: 包含窗口管理器的核心逻辑和数据模型。
- GlazeWM.Infrastructure: 包含窗口管理器的底层基础设施代码。
- .editorconfig: 编辑器配置文件,用于统一代码风格。
- .gitattributes: Git 属性配置文件。
- .gitignore: Git 忽略文件配置。
- GlazeWM.sln: 项目的解决方案文件。
- LICENSE.md: 项目的许可证文件。
- README.md: 项目的说明文档。
项目的启动文件介绍
GlazeWM 的启动文件位于 GlazeWM.Bootstrapper
目录中。主要的启动文件是 GlazeWM.Bootstrapper.csproj
。可以使用以下命令来构建和发布项目:
dotnet publish /GlazeWM.Bootstrapper/GlazeWM.Bootstrapper.csproj --configuration=Release --runtime=win-x64 --output= --self-contained -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
项目的配置文件介绍
GlazeWM 的配置文件默认位于 C:\Users\<YOUR_USER>\glaze-wm\config.yaml
。如果该文件不存在,应用程序启动时会生成一个包含默认配置的文件。
可以使用以下命令指定不同的配置文件路径:
/GlazeWM.exe --config="C:\<PATH_TO_CONFIG>\config.yaml"
配置文件的主要内容包括:
general:
startup_commands: []
focus_follows_cursor: false
toggle_workspace_on_refocus: false
cursor_jump:
enabled: true
trigger: 'monitor_focus'
- startup_commands: 启动时执行的命令列表。
- focus_follows_cursor: 是否在鼠标焦点变化时自动聚焦窗口。
- toggle_workspace_on_refocus: 是否在重新聚焦时切换工作区。
- cursor_jump: 鼠标跳转的配置,包括是否启用和触发条件。
以上是 GlazeWM 项目的基本使用教程,涵盖了项目的目录结构、启动文件和配置文件的介绍。希望对您有所帮助。