#shell #bind #hotkey #temporarily #i3 #command #i3-wm

app i3-quick-bind

在i3-wm中临时将shell命令绑定到热键

1个不稳定版本

使用旧的Rust 2015

0.1.0 2017年10月14日

#7 in #temporarily

MIT许可证

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