特殊:Badtitle/NS100:MappingWindowsKey:修订间差异
小 新页面: {{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... |
小无编辑摘要 |
||
(未显示同一用户的5个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/MappingWindowsKey}} | {{From|https://help.ubuntu.com/community/MappingWindowsKey}} | ||
{{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 | 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 default Windows functionality. This whole process is accomplished using the 'xmodmap' utility. | ||
First, we will need to edit or create the .xstartup file. This file is run when the GUI is started, and will give persistence to this modification. If the file exists, open your favorite text editor then edit to include the following commands. If the file does not exist, add the following to a new file and save it to "/home/user/.xstartup". | |||
<pre><nowiki> | <pre><nowiki> | ||
# Make the Windows key a useable mod key: | # Make the Windows key a useable mod key: | ||
第13行: | 第9行: | ||
xmodmap -e "add mod4 = Super_L" | xmodmap -e "add mod4 = Super_L" | ||
</nowiki></pre> | </nowiki></pre> | ||
'' '''Note''': You can type | '' '''Note''': You can type these three commands directly in a terminal window to test them. If the first command returns '''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 | In order to create your key shortcuts, you will need to open the Keyboard Shortcuts window from the System > Preferences menu. Click on the shortcut you want to create, then assign your key combination. | ||
For example, if you want to copy the "Run" dialog box functionality from Windows (Win+R), just click on ''Show the panel run application dialog'', then press Win+R at the same time. | |||
===== Common | ===== Common Windows Shortcut Key Combinations ===== | ||
{|border="1" cellspacing="0" | {|border="1" cellspacing="0" | ||
|'''Key'''||||'''Keyboard Shortcuts Name'''||||'''Windows equivalent''' | |'''Key'''||||'''Keyboard Shortcuts Item Name'''||||'''Windows equivalent''' | ||
|- | |- | ||
|Win+R||||Show the panel run application dialog||||Run dialog | |Win+R||||Show the panel run application dialog||||Run dialog | ||
第32行: | 第26行: | ||
|Win+F||||Search||||Search Files or Folders | |Win+F||||Search||||Search Files or Folders | ||
|- | |- | ||
|Win+M||||Hide all windows and focus desktop|||| | |Win+M||||Hide all windows and focus desktop||||Minimize all windows, showing desktop | ||
|- | |||
|Win+D||||Hide all windows and focus desktop||||Bring desktop to front, minimizing all windows | |||
|} | |} | ||
---- | ---- | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月19日 (三) 23:23的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/MappingWindowsKey }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/af | • {{#if: UbuntuHelp:MappingWindowsKey|Afrikaans| [[::MappingWindowsKey/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/ar | • {{#if: UbuntuHelp:MappingWindowsKey|العربية| [[::MappingWindowsKey/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/az | • {{#if: UbuntuHelp:MappingWindowsKey|azərbaycanca| [[::MappingWindowsKey/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/bcc | • {{#if: UbuntuHelp:MappingWindowsKey|جهلسری بلوچی| [[::MappingWindowsKey/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/bg | • {{#if: UbuntuHelp:MappingWindowsKey|български| [[::MappingWindowsKey/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/br | • {{#if: UbuntuHelp:MappingWindowsKey|brezhoneg| [[::MappingWindowsKey/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/ca | • {{#if: UbuntuHelp:MappingWindowsKey|català| [[::MappingWindowsKey/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/cs | • {{#if: UbuntuHelp:MappingWindowsKey|čeština| [[::MappingWindowsKey/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/de | • {{#if: UbuntuHelp:MappingWindowsKey|Deutsch| [[::MappingWindowsKey/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/el | • {{#if: UbuntuHelp:MappingWindowsKey|Ελληνικά| [[::MappingWindowsKey/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/es | • {{#if: UbuntuHelp:MappingWindowsKey|español| [[::MappingWindowsKey/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/fa | • {{#if: UbuntuHelp:MappingWindowsKey|فارسی| [[::MappingWindowsKey/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/fi | • {{#if: UbuntuHelp:MappingWindowsKey|suomi| [[::MappingWindowsKey/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/fr | • {{#if: UbuntuHelp:MappingWindowsKey|français| [[::MappingWindowsKey/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/gu | • {{#if: UbuntuHelp:MappingWindowsKey|ગુજરાતી| [[::MappingWindowsKey/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/he | • {{#if: UbuntuHelp:MappingWindowsKey|עברית| [[::MappingWindowsKey/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/hu | • {{#if: UbuntuHelp:MappingWindowsKey|magyar| [[::MappingWindowsKey/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/id | • {{#if: UbuntuHelp:MappingWindowsKey|Bahasa Indonesia| [[::MappingWindowsKey/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/it | • {{#if: UbuntuHelp:MappingWindowsKey|italiano| [[::MappingWindowsKey/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/ja | • {{#if: UbuntuHelp:MappingWindowsKey|日本語| [[::MappingWindowsKey/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/ko | • {{#if: UbuntuHelp:MappingWindowsKey|한국어| [[::MappingWindowsKey/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/ksh | • {{#if: UbuntuHelp:MappingWindowsKey|Ripoarisch| [[::MappingWindowsKey/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/mr | • {{#if: UbuntuHelp:MappingWindowsKey|मराठी| [[::MappingWindowsKey/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/ms | • {{#if: UbuntuHelp:MappingWindowsKey|Bahasa Melayu| [[::MappingWindowsKey/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/nl | • {{#if: UbuntuHelp:MappingWindowsKey|Nederlands| [[::MappingWindowsKey/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/no | • {{#if: UbuntuHelp:MappingWindowsKey|norsk| [[::MappingWindowsKey/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/oc | • {{#if: UbuntuHelp:MappingWindowsKey|occitan| [[::MappingWindowsKey/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/pl | • {{#if: UbuntuHelp:MappingWindowsKey|polski| [[::MappingWindowsKey/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/pt | • {{#if: UbuntuHelp:MappingWindowsKey|português| [[::MappingWindowsKey/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/ro | • {{#if: UbuntuHelp:MappingWindowsKey|română| [[::MappingWindowsKey/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/ru | • {{#if: UbuntuHelp:MappingWindowsKey|русский| [[::MappingWindowsKey/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/si | • {{#if: UbuntuHelp:MappingWindowsKey|සිංහල| [[::MappingWindowsKey/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/sq | • {{#if: UbuntuHelp:MappingWindowsKey|shqip| [[::MappingWindowsKey/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/sr | • {{#if: UbuntuHelp:MappingWindowsKey|српски / srpski| [[::MappingWindowsKey/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/sv | • {{#if: UbuntuHelp:MappingWindowsKey|svenska| [[::MappingWindowsKey/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/th | • {{#if: UbuntuHelp:MappingWindowsKey|ไทย| [[::MappingWindowsKey/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/tr | • {{#if: UbuntuHelp:MappingWindowsKey|Türkçe| [[::MappingWindowsKey/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/vi | • {{#if: UbuntuHelp:MappingWindowsKey|Tiếng Việt| [[::MappingWindowsKey/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/yue | • {{#if: UbuntuHelp:MappingWindowsKey|粵語| [[::MappingWindowsKey/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/zh | • {{#if: UbuntuHelp:MappingWindowsKey|中文| [[::MappingWindowsKey/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/zh-hans | • {{#if: UbuntuHelp:MappingWindowsKey|中文(简体)| [[::MappingWindowsKey/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MappingWindowsKey | UbuntuHelp:MappingWindowsKey | {{#if: | :}}MappingWindowsKey}}/zh-hant | • {{#if: UbuntuHelp:MappingWindowsKey|中文(繁體)| [[::MappingWindowsKey/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:MappingWindowsKey|:MappingWindowsKey|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#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 default Windows functionality. This whole process is accomplished using the 'xmodmap' utility. First, we will need to edit or create the .xstartup file. This file is run when the GUI is started, and will give persistence to this modification. If the file exists, open your favorite text editor then edit to include the following commands. If the file does not exist, add the following to a new file and save it to "/home/user/.xstartup".
# 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 these three commands directly in a terminal window to test them. If the first command returns 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 shortcut you want to create, then assign your key combination. For example, if you want to copy the "Run" dialog box functionality from Windows (Win+R), just click on Show the panel run application dialog, then press Win+R at the same time.
Common Windows Shortcut Key Combinations
Key | Keyboard Shortcuts Item 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 | Minimize all windows, showing desktop | ||
Win+D | Hide all windows and focus desktop | Bring desktop to front, minimizing all windows |