我正在尝试找出一种方法将我的 i3wm 配置文件移动到组织模式文件。我有一个包含键绑定以及它们应该执行的命令的表,我想从中生成适当的源代码。
例子:
| Keybinding | Command | Action |
|-----------------------+----------------------+--------------------------|
| {{{mod}}} + Return | i3-sensible-terminal | Opens a new terminal |
| {{{mod}}} + Shift + q | kill | Kills the focused window |
Run Code Online (Sandbox Code Playgroud)
应该生成
bindsym {{{mod}}}+Return exec --no-startup-id i3-sensible-terminal ;; Opens a new Terminal
bindsym {{{mod}}}+Shift+q exec --no-startup-id kill ;; Kills the focused window
Run Code Online (Sandbox Code Playgroud)
这样的事可能吗?