1个不稳定版本
使用旧的Rust 2015
| 0.1.0 | 2017年10月14日 |
|---|
#7 in #temporarily
7KB
113 行
i3-quick-bind
临时将shell命令绑定到热键
用法
- 编辑您的i3配置,将您想要使用的任何键绑定到无操作。例如,对于
alt + a,您需要添加一行bindsym Mod1+a nop。 - 从终端启动i3-quick-bind,例如
i3-quick-bind Mod1+a 'ls -la | grep *.png'。这将会启动i3-quick-bind进程,它等待来自i3的消息。每当按下键组合时,它应该会启动一个sh子进程,在此情况下解释ls -la | grep *.png,将输出写入启动i3-quick-bind的同一终端。
依赖
~1.4–9MB
~71K SLoC