(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| # initial code from https://github.com/ros-perception/vision_opencv/blob/noetic/cv_bridge/python/cv_bridge/core.py | |
| import cv2 | |
| import numpy as np | |
| import sensor_msgs | |
| def cv2_to_imgmsg(cvim, encoding="passthrough", header=None): | |
| if not isinstance(cvim, (np.ndarray, np.generic)): | |
| raise TypeError('Your input type is not a numpy array') | |
| # prepare msg | |
| img_msg = sensor_msgs.msg.Image() |
| function flutter-watch(){ | |
| tmux new-session \;\ | |
| send-keys 'flutter run --pid-file=/tmp/tf1.pid' Enter \;\ | |
| split-window -v \;\ | |
| send-keys 'npx -y nodemon -e dart -x "cat /tmp/tf1.pid | xargs kill -s USR1"' Enter \;\ | |
| resize-pane -y 5 -t 1 \;\ | |
| select-pane -t 0 \; | |
| } | |
| function hx-find(){ |