当 i3wm 启动时,我想启动一个终端来监视正在进行的处理。我知道如何分开做这一切,但我很难把它结合起来。
真空中的命令是:
urxvt -hold -e sh -c <command>
watch -n 5 <command>
ps ax | grep -E 'ssh|rsync'
我目前有以下内容~/.config/i3/config
:
exec --no-startup-id i3-msg "workspace 10; exec urxvt -hold -e sh -c 'watch -n 5 \"ps ax | grep -E \'ssh|rsync\'\"'"
这真的行不通。我在组合所有这些命令时遇到了麻烦。
这可以在不为每个步骤创建单独的 shell 脚本的情况下完成吗?