特殊:Badtitle/NS100:MappingWindowsKey:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
新页面: {{From|https://help.ubuntu.com/community/MappingWindowsKey}} {{Languages|UbuntuHelp:MappingWindowsKey}} This small guide explains how to map the Windows key in order to use it as a modifi...
 
Wikibot留言 | 贡献
无编辑摘要
第2行: 第2行:
{{Languages|UbuntuHelp:MappingWindowsKey}}
{{Languages|UbuntuHelp:MappingWindowsKey}}
This small guide explains how to map the Windows key in order to use it as a modifier, under Ubuntu. This guide also shows how to map common Windows Key shortcuts so that the behavior is similar to how Windows users are used to doing things. The whole thing is very simple, and if you want to include (or link to this) from other pages, feel free to do so.
This small guide explains how to map the Windows key in order to use it as a modifier, under Ubuntu. This guide also shows how to map common Windows Key shortcuts so that the behavior is similar to how Windows users are used to doing things. The whole thing is very simple, and if you want to include (or link to this) from other pages, feel free to do so.
==== Create a .xstartup file ====
==== Create a .xstartup file ====
We will need to edit your /home/user/.xstartup file. If you have one, edit it (with whatever text editor you work best with). If it does not exist, simply create it. Easiest way to do this is to open Text Editor (under Applications, Accessories) and then save the file as /home/user/.xstartup
We will need to edit your /home/user/.xstartup file. If you have one, edit it (with whatever text editor you work best with). If it does not exist, simply create it. Easiest way to do this is to open Text Editor (under Applications, Accessories) and then save the file as /home/user/.xstartup
Paste the following in the file:
Paste the following in the file:
<pre><nowiki>
<pre><nowiki>
第14行: 第12行:
</nowiki></pre>
</nowiki></pre>
'' '''Note''': You can type the three commands directly in a terminal window to test them. If the first command spits out  '''commandline:1:  bad remove modifier keysym list (empty)''', then simply delete it or add a # before it to comment it out.''
'' '''Note''': You can type the three commands directly in a terminal window to test them. If the first command spits out  '''commandline:1:  bad remove modifier keysym list (empty)''', then simply delete it or add a # before it to comment it out.''
''Source of this code: [http://www.interstice.com/journals/Simon/20030911.html Click Here]''
''Source of this code: [http://www.interstice.com/journals/Simon/20030911.html Click Here]''
==== Map Keys ====
==== Map Keys ====
In order to create your key shortcuts, you will need to open the Keyboard Shortcuts window from the System / Preferences menu. Click on the shorcut you want to create, then make your key combination. For example, if you want to copy the "Run" dialog box from Windows (Win+R), just click on ''Show the panel run application dialog'', then press WIN+R at the same time.  
In order to create your key shortcuts, you will need to open the Keyboard Shortcuts window from the System / Preferences menu. Click on the shorcut you want to create, then make your key combination. For example, if you want to copy the "Run" dialog box from Windows (Win+R), just click on ''Show the panel run application dialog'', then press WIN+R at the same time.  
===== Common Win Shortcuts =====
===== Common Win Shortcuts =====
{|border="1" cellspacing="0"
{|border="1" cellspacing="0"
第34行: 第29行:
|Win+M||||Hide all windows and focus desktop||||Show Desktop
|Win+M||||Hide all windows and focus desktop||||Show Desktop
|}
|}
----
----
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2007年11月30日 (五) 20:13的版本

{{#ifexist: :MappingWindowsKey/zh | | {{#ifexist: MappingWindowsKey/zh | | {{#ifeq: {{#titleparts:MappingWindowsKey|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MappingWindowsKey|1|-1|}} | zh | | }}

This small guide explains how to map the Windows key in order to use it as a modifier, under Ubuntu. This guide also shows how to map common Windows Key shortcuts so that the behavior is similar to how Windows users are used to doing things. The whole thing is very simple, and if you want to include (or link to this) from other pages, feel free to do so.

Create a .xstartup file

We will need to edit your /home/user/.xstartup file. If you have one, edit it (with whatever text editor you work best with). If it does not exist, simply create it. Easiest way to do this is to open Text Editor (under Applications, Accessories) and then save the file as /home/user/.xstartup Paste the following in the file:

# Make the Windows key a useable mod key:
xmodmap -e "remove mod4 = F13"
xmodmap -e "keycode 115 = Super_L"
xmodmap -e "add mod4 = Super_L"

Note: You can type the three commands directly in a terminal window to test them. If the first command spits out commandline:1: bad remove modifier keysym list (empty), then simply delete it or add a # before it to comment it out. Source of this code: Click Here

Map Keys

In order to create your key shortcuts, you will need to open the Keyboard Shortcuts window from the System / Preferences menu. Click on the shorcut you want to create, then make your key combination. For example, if you want to copy the "Run" dialog box from Windows (Win+R), just click on Show the panel run application dialog, then press WIN+R at the same time.

Common Win Shortcuts
Key Keyboard Shortcuts Name Windows equivalent
Win+R Show the panel run application dialog Run dialog
Win+E Home Folder Windows Explorer (or My Documents)
Win+L Logout Shutdown
Win+F Search Search Files or Folders
Win+M Hide all windows and focus desktop Show Desktop