Temporarily bind a shell command to a hotkey
Usage:
- Edit your i3 config to bind any keys you want to use to no-ops. For example for
alt + a
you would add the linebindsym Mod1+a nop
. - Launch i3-quick-bind from the terminal, like
i3-quick-bind Mod1+a 'ls -la | grep *.png'
. This will start the i3-quick-bind process which waits for messages from i3. Whenever the key combo is pressed it should spawn ansh
child process that in this case interpretsls -la | grep *.png
, which writes the output in the same terminal thati3-quick-bind
was invoked from.