!/bin/sh
WID=$(xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)"| awk '{print $5}')xdotool windowfocus $WIDxdotool key ctrl+shift+twmctrl -i -a $WID这将自动确定相应的终端并相应地打开选项卡。

WID=$(xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)"| awk '{print $5}')xdotool windowfocus $WIDxdotool key ctrl+shift+twmctrl -i -a $WID这将自动确定相应的终端并相应地打开选项卡。