[deepin][linux]deepin禁用鼠标中间粘贴功能
<p> </p><p>deepin禁用鼠标中间粘贴功能</p>
<p>不知何时起,nngxd,代码里面总是意外多点东西,造成bug.这都是鼠标中间在Linux上面有粘贴的功能,好吧,直接干掉这个功能。</p>
<h1>方法如下:</h1>
<p>1、禁用中键功能<br>在终端输入如下命令即可:</p>
<p> 1)禁用中键粘贴,开启侧键复制粘贴功能</p>
<blockquote>
<pre class="prettyprint"><code class="language-shell hljs bash has-numbering">xmodmap <span class="hljs-operator">-e <span class="hljs-string">"pointer = 1 25 3 4 5 6 7 2"</span></span></code></pre>
</blockquote>
<p> 2)仅禁用中键粘贴</p>
<blockquote>
<pre class="prettyprint"><code class="language-shell hljs bash has-numbering"> xmodmap <span class="hljs-operator">-e <span class="hljs-string">"pointer = 1 25 3 4 5 6 7 8"</span></span></code></pre>
</blockquote>
<p>2、恢复中键功能</p>
<p>在终端输入如下命令即可:</p>
<blockquote>
<pre class="prettyprint"><code class="language-shell hljs bash has-numbering">xmodmap <span class="hljs-operator">-e <span class="hljs-string">"pointer = 1 2 3 4 5 6 7 8"</span></span></code></pre>
</blockquote>
<p>这里<code>xmodmap</code>命令是在修改按键映射,我们应该知道,鼠标键盘按下时实际产生的是一个“<code>信号</code>”,至于这个信号要怎么处理,则由软件(含操作系统)去实现。<br><code>pointer</code>表示鼠标,其后的参数是一串指令,其中前三个“<code>1 2 3</code>”就表示鼠标的“<code>左 中 右</code>”三个按键。</p>
<p>如果你习惯左手去操作鼠标,想把鼠标左右按键功能交换,就可以这么设置:</p>
<blockquote>
<pre class="prettyprint"><code class="language-shell hljs bash has-numbering">xmodmap <span class="hljs-operator">-e <span class="hljs-string">"pointer = 3 2 1 4 5 6 7 8"</span></span></code></pre>
</blockquote>
<p>如果想知道更多关于按键映射的信息,可自行去查阅。</p>
</div>
<div id="MySignature" role="contentinfo">
<p>本文来自博客园,作者:landv,转载请注明原文链接:https://www.cnblogs.com/landv/p/12786402.html</p><br><br>
来源:https://www.cnblogs.com/landv/p/12786402.html
頁:
[1]