TWMN 项目教程

TWMN 项目教程

twmnA notification system for tiling window managers项目地址:https://gitcode.com/gh_mirrors/tw/twmn

1. 项目的目录结构及介绍

TWMN 项目的目录结构如下:

twmn/
├── examples/
│   └── ...
├── init/
│   └── systemd/
│       ├── twmnc
│       └── twmnd
├── .gitignore
├── LICENSE
├── README.md
├── TODO
├── screencast.gif
└── twmn.pro

目录结构介绍

  • examples/: 包含示例文件。
  • init/systemd/: 包含系统服务的初始化文件。
  • .gitignore: Git 忽略文件。
  • LICENSE: 项目许可证文件。
  • README.md: 项目说明文档。
  • TODO: 待办事项列表。
  • screencast.gif: 屏幕录制动画。
  • twmn.pro: 项目配置文件。

2. 项目的启动文件介绍

TWMN 项目的启动文件主要包括 twmndtwmnc

twmnd

twmnd 是一个守护进程,负责监听通知请求并显示它们。启动 twmnd 的命令如下:

twmnd

twmnc

twmnc 是一个命令行工具,用于向 twmnd 发送通知。使用 twmnc 的命令如下:

twmnc --help

3. 项目的配置文件介绍

TWMN 项目的配置文件主要位于 config/twmn/twmn.conf。该文件在 twmnd 首次启动时生成。

配置文件内容

[main]
Program/command to be executed on notification activation = activate_command= Path to command
Time each notification remains visible = duration=3000
Host address to listen on for notifications = host=127.0.0.1
UDP port used for notifications = port=9797
Program/command to play sound with = sound_command= Path to command

[gui]
Screen number to display notifications on = screen=0
Absolute position from the top-left corner of the slide = absolute_position=
Background color = background_color=

配置文件说明

  • [main] 部分:

    • activate_command: 通知激活时执行的命令。
    • duration: 通知显示的持续时间(毫秒)。
    • host: 监听通知的主机地址。
    • port: 用于通知的 UDP 端口。
    • sound_command: 播放声音的命令。
  • [gui] 部分:

    • screen: 显示通知的屏幕编号。
    • absolute_position: 通知滑块的绝对位置。
    • background_color: 通知滑块的背景颜色。

以上是 TWMN 项目的目录结构、启动文件和配置文件的详细介绍。希望这份教程能帮助你更好地理解和使用 TWMN 项目。

twmnA notification system for tiling window managers项目地址:https://gitcode.com/gh_mirrors/tw/twmn

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

秋泉律Samson

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值