リナックス特有の画面を掴むための「ALt」キーの指定を変更したい(inkscapeでバッティングする)

パピーリナックスを初めて使う方もご利用ください

モデレータ: 暇人, YoN, nyu

返信する
akochang
記事: 6
登録日時: 13/07/31(水) 03:47

リナックス特有の画面を掴むための「ALt」キーの指定を変更したい(inkscapeでバッティングする)

投稿記事 by akochang »

なんとか自力でやろうと努力しているのですが、、わからないので質問させてください。

パピーで inkskape を使用しようとしているのですが、
inkskape で指定されているショートカットキーの「Alt」が、リナックス特有の画面を掴むための「Alt」とバッティングしてしまいます。
けっこう重要なショートカットのようなので困ってます。
http://inkscape.org/doc/basic/tutorial-basic.ja.html で以下の記述を見つけました。
画像

http://www.atmarkit.co.jp/flinux/rensai ... edrag.html で以下の記述を見つけました。
Gnome では「Ctrl」へと変更できるみたいですので、パピーでもできるんじゃない?と期待してます。
画像

あちこち探して「パップコントロール」から、ハード > キー配列の変更 > Options に進みました。
#根本的に勘違いしている可能性も十分にあること、、自覚してます。ごめんなさい。
画像

たぶんこれじゃないかな、、と思うのが「Alt/Win Key behavior」だったんですが、よくわかりません。
そもそも「Meta」「Super」「Hyper」というキーに関しても、Wikipedia とかも読んだのですが理解できません。
画像

よろしくお願いします。 m(_ _)m
akochang
Puppy Linux 0.52 Lupu / HDフルーガルインストールと、USBフラッシュの2種を使用中です。
プログラミングとかには無知なので、make とか、そういったことはわかりません。
でもネットでいろいろ拝見しながら、頑張ってパピーを育ててます。とても可愛いです。
画像
SONY VAIO / PCG-6R2N
Processor / Intel(R) Celeron(R) M 1.73GHz
Memory / 1545MB
アバター
シノバー
記事: 3328
登録日時: 09/03/21(土) 00:05
連絡する:

Re: リナックス特有の画面を掴むための「ALt」キーの指定を変更したい(inkscapeでバッティングする)

投稿記事 by シノバー »

akochang さんが書きました:あちこち探して「パップコントロール」から、ハード > キー配列の変更 > Options に進みました。
たぶん、そこじゃないんじゃないかな。
Linux の場合は Altキーと他のいくつかのキーの組み合わせで期待した動作が行われないかもしれません。これはウィンドウマネージャーがそれらキー入力を受け付け、Inkscape に渡されないために発生します。
Altキーと他のいくつかのキーの組み合わせ」であって、Altキーそのものじゃない。
ウィンドウマネージャーはパピーの場合JWMなので、JWMの設定が問題。

メニュー>デスクトップ>JWMの設定 に「キーボードのショートカット」があります。
走れパピー(新ブログ)https://shinobar.net/linux/blog
New Downloads https://shinobar.net/puppy/
486HA
記事: 1142
登録日時: 11/03/06(日) 14:31

Re: リナックス特有の画面を掴むための「ALt」キーの指定を変更したい(inkscapeでバッティングする)

投稿記事 by 486HA »

 日本語公式サイトhttp://inkscape.org/doc/keys048.ja.htmlには、次のように述べられています。
このドキュメントは、Inkscape の、デフォルトのキーボードおよびマウスのショートカットについて説明しています。
内容は Inkscape に含まれる share/keys/default.xml で定義されており、そのほとんど (すべてではありません) はユーザーによる変更が可能です。変更手順の詳細は default.xml をご覧ください。


 このshare/keys/default.xmlとは、例えばinkscape-0.48.4.tar.bz2を展開すると見ることができます。

コード: 全て選択

<?xml version="1.0"?>
<keys name="Inkscape default">

<!--  
This file contains the default Inkscape keyboard shortcuts. In each "bind" element:

- The "key" attribute contains the key name. The names are the same as those in the
<gdk/gdkkeysyms.h> header file but without the leading "GDK_". If you don't have GDK
source locally, you can view that file at:

  http://git.gnome.org/browse/gtk+/plain/gdk/gdkkeysyms.h

- The "modifiers" attribute contains a comma-separated list of modifiers, which can be
one or more of: "Ctrl", "Shift", "Alt".

- The "action" attribute contains the name of the action. The complete list of actions
(called "verbs") is in the file src/verbs.cpp in Inkscape source; there you can see
brief descriptions of what each action does. The same action may have multiple key
bindings.

- The "display" attribute controls whether this binding will be displayed in the menu
and tooltips. Only one binding for each action may have this attribute.

Note that the current file lists ALL Inkscape actions, even those that do not have any
keys in the default mapping (those don't have "key" or "modifiers" attributes). You can
assign any keys to these actions by adding "key" and "modifiers" attributes to
them. Developers: Please add here any new verbs you create!

This file is inkscape.xml, and in the original installation it is also copied as
default.xml. The latter is the file that Inkscape reads on startup. If you overwrite
default.xml with some other keymap file (e.g. xara.xml), you can always restore the
default keybindings by copying inkscape.xml to default.xml again.

In case of conflict, those bindings that come later override those before them. This
file resides in the share/keys directory of your Inkscape installation, but you may also
have a default.xml in your personal Inkscape profile directory (e.g. ~/.config/inkscape
on Unix). The bindings in that personal file are added to (or, if there's a conflict,
override) the bindings in the main default.xml.
-->


<!-- File -->

  <bind key="n" modifiers="Ctrl" action="FileNew" display="true" />
  <bind key="N" modifiers="Ctrl" action="FileNew" />

  <bind key="o" modifiers="Ctrl" action="FileOpen" display="true" />
  <bind key="O" modifiers="Ctrl" action="FileOpen" />

  <bind action="FileRevert" />

  <bind key="s" modifiers="Ctrl" action="FileSave" display="true" />
  <bind key="S" modifiers="Ctrl" action="FileSave" />

  <bind key="s" modifiers="Ctrl,Shift" action="FileSaveAs" display="true" />
  <bind key="S" modifiers="Ctrl,Shift" action="FileSaveAs" />

  <bind key="s" modifiers="Ctrl,Shift,Alt" action="FileSaveACopy" display="true" />
  <bind key="S" modifiers="Ctrl,Shift,Alt" action="FileSaveACopy" />

  <bind key="p" modifiers="Ctrl" action="FilePrint" display="true" />
  <bind key="P" modifiers="Ctrl" action="FilePrint" />

  <bind key="i" modifiers="Ctrl" action="FileImport" display="true" />
  <bind key="I" modifiers="Ctrl" action="FileImport" />

  <bind key="e" modifiers="Ctrl,Shift" action="FileExport" display="true" />
  <bind key="E" modifiers="Ctrl,Shift" action="FileExport" />

  <bind action="FileVacuum" />

  <bind key="w" modifiers="Ctrl" action="FileClose" display="true" />
  <bind key="W" modifiers="Ctrl" action="FileClose" />

  <bind key="q" modifiers="Ctrl" action="FileQuit" display="true" />
  <bind key="Q" modifiers="Ctrl" action="FileQuit" />

<!-- Tools -->

  <bind key="F1" action="ToolSelector" display="true" />
  <bind key="s" action="ToolSelector" />
  <bind key="S" action="ToolSelector" />

  <bind action="SelectPrefs" />

  <bind key="F2" action="ToolNode" display="true" />
  <bind key="n" action="ToolNode" />
  <bind key="N" action="ToolNode" />

  <bind action="NodePrefs" />

  <bind key="F2" modifiers="Shift" action="ToolTweak" display="true" />
  <bind key="w" action="ToolTweak" />
  <bind key="W" action="ToolTweak" />

  <bind action="TweakPrefs" />

  <bind key="F3" action="ToolZoom" display="true" />
  <bind key="z" action="ToolZoom" />
  <bind key="Z" action="ToolZoom" />

  <bind action="ZoomPrefs" />

  <bind key="F4" action="ToolRect" display="true" />
  <bind key="r" action="ToolRect" />
  <bind key="R" action="ToolRect" />

  <bind action="RectPrefs" />

  <bind key="F4" modifiers="Shift" action="Tool3DBox" display="true" />
  <bind key="x" action="Tool3DBox" />
  <bind key="X" action="Tool3DBox" />

  <bind action="3DBoxPrefs" />

  <bind key="F5" action="ToolArc" display="true" />
  <bind key="e" action="ToolArc" />
  <bind key="E" action="ToolArc" />

  <bind action="ArcPrefs" />

  <bind key="F9" modifiers="Shift" action="ToolStar" />
  <bind key="asterisk" modifiers="Shift" action="ToolStar" /> 	 
  <bind key="asterisk" action="ToolStar" /> 	 
  <bind key="KP_Multiply" action="ToolStar" display="true" />

  <bind action="StarPrefs" />

  <bind key="F9" action="ToolSpiral" display="true" />
  <bind key="i" action="ToolSpiral" />
  <bind key="I" action="ToolSpiral" />

  <bind action="SpiralPrefs" />

  <bind key="F6" action="ToolPencil" display="true" />
  <bind key="p" action="ToolPencil" />
  <bind key="P" action="ToolPencil" />

  <bind action="PencilPrefs" />

  <bind key="F6" modifiers="Shift" action="ToolPen" display="true" />
  <bind key="b" action="ToolPen" />
  <bind key="B" action="ToolPen" />

  <bind action="PenPrefs" />

  <bind key="F6" modifiers="Ctrl" action="ToolCalligraphic" display="true" />
  <bind key="c" action="ToolCalligraphic" />
  <bind key="C" action="ToolCalligraphic" />

  <bind action="CalligraphicPrefs" />

  <bind key="E" modifiers="Shift" action="ToolEraser" display="true" />

  <bind action="EraserPrefs" />

  <bind key="F7" modifiers="Shift" action="ToolPaintBucket" display="true" />
  <bind key="u" action="ToolPaintBucket" />
  <bind key="U" action="ToolPaintBucket" />

  <bind action="PaintBucketPrefs" />

  <bind key="F8" action="ToolText" display="true" />
  <bind key="t" action="ToolText" />
  <bind key="T" action="ToolText" />

  <bind action="TextPrefs" />

  <bind key="F1" modifiers="Ctrl" action="ToolGradient" display="true" />
  <bind key="g" action="ToolGradient" />
  <bind key="G" action="ToolGradient" />

  <bind action="GradientPrefs" />

  <bind key="F2" modifiers="Ctrl" action="ToolConnector" display="true" />
  <bind key="o" action="ToolConnector" />
  <bind key="O" action="ToolConnector" />

  <bind action="ConnectorPrefs" />

  <bind key="F7" action="ToolDropper" display="true" />
  <bind key="d" action="ToolDropper" />
  <bind key="D" action="ToolDropper" />

  <bind action="DropperPrefs" />

  <bind key="F3" modifiers="Shift" action="ToolSpray" display="true" />
  <bind key="a" action="ToolSpray" />
  <bind key="A" action="ToolSpray" />

  <bind action="SprayPrefs" />


<!-- Zoom -->

  <bind key="plus" action="ZoomIn" display="true" />
  <bind key="plus" modifiers="Shift" action="ZoomIn" />
  <bind key="equal" action="ZoomIn" />
  <bind key="equal" modifiers="Shift" action="ZoomIn" />
  <bind key="KP_Add" action="ZoomIn" />

  <bind key="minus" action="ZoomOut" display="true" />
  <bind key="minus" modifiers="Shift" action="ZoomOut" />
  <bind key="underscore" action="ZoomOut" />
  <bind key="underscore" modifiers="Shift" action="ZoomOut" />  
  <bind key="KP_Subtract" action="ZoomOut" />

  <bind key="1" action="Zoom1:0" display="true" />
  <bind key="KP_1" action="Zoom1:0" />
  <bind key="2" action="Zoom1:2" display="true" />
  <bind key="KP_2" action="Zoom1:2" />
  <bind key="3" action="ZoomSelection" display="true" />
  <bind key="KP_3" action="ZoomSelection" />
  <bind key="4" action="ZoomDrawing" display="true" />
  <bind key="KP_4" action="ZoomDrawing" />
  <bind key="5" action="ZoomPage" display="true" />
  <bind key="KP_5" action="ZoomPage" />
  <bind key="KP_Begin" action="ZoomPage" />
  <bind key="6" action="ZoomPageWidth" display="true" />
  <bind key="KP_6" action="ZoomPageWidth" />

  <bind key="e" modifiers="Ctrl" action="ZoomPageWidth" />
  <bind key="E" modifiers="Ctrl" action="ZoomPageWidth" />

  <bind key="grave" modifiers="Shift" action="ZoomNext" display="true" /> <!-- ` -->
  <bind key="asciitilde" modifiers="Shift" action="ZoomNext" /> <!-- ~ -->
  <bind key="grave" action="ZoomPrev" display="true" /> <!-- ` -->

<!-- View -->

  <bind key="F11" action="FullScreen" display="true" /> 
  <bind key="F11" action="FocusToggle" modifiers="Shift" display="true" /> 

  <bind key="Tab" modifiers="Ctrl" action="NextWindow" display="true" />
  <bind key="ISO_Left_Tab" modifiers="Ctrl" action="NextWindow" />
  <bind key="Tab" modifiers="Ctrl,Shift" action="PrevWindow" display="true" />
  <bind key="ISO_Left_Tab" modifiers="Ctrl,Shift" action="PrevWindow" />

  <bind key="r" modifiers="Ctrl" action="ToggleRulers" display="true" />
  <bind key="R" modifiers="Ctrl" action="ToggleRulers" />

  <bind key="b" modifiers="Ctrl" action="ToggleScrollbars" display="true" />
  <bind key="B" modifiers="Ctrl" action="ToggleScrollbars" />

  <bind key="bar" modifiers="Shift" action="ToggleGuides" /> <!-- | -->
  <bind key="bar" action="ToggleGuides" display="true" />

  <bind key="numbersign" modifiers="Shift" action="ToggleGrid" /> <!-- # -->
  <bind key="numbersign" action="ToggleGrid" display="true" />
  
  <bind key="percent" action="ToggleSnapGlobal" display="true" /> <!-- % -->
  <bind key="percent" modifiers="Shift" action="ToggleSnapGlobal" />

  <bind action="ViewNew" />
  <bind action="ViewNewPreview" />
  <bind action="ViewIconPreview" />

  <bind action="ViewModeNormal" />
  <bind action="ViewModeOutline" />

  <bind key="KP_5" modifiers="Ctrl" action="ViewModeToggle" display="true" />
  <bind key="KP_Begin" modifiers="Ctrl" action="ViewModeToggle" />

<!-- Edit -->

  <bind key="z" modifiers="Ctrl" action="EditUndo" display="true" />
  <bind key="Z" modifiers="Ctrl" action="EditUndo" />
  <bind key="y" modifiers="Ctrl,Shift" action="EditUndo" />
  <bind key="Y" modifiers="Ctrl,Shift" action="EditUndo" />

  <bind key="z" modifiers="Ctrl,Shift" action="EditRedo" display="true" />
  <bind key="Z" modifiers="Ctrl,Shift" action="EditRedo" />
  <bind key="y" modifiers="Ctrl" action="EditRedo" />
  <bind key="Y" modifiers="Ctrl" action="EditRedo" />

  <bind key="h" modifiers="Ctrl,Shift" action="DialogUndoHistory" display="true" />
  <bind key="H" modifiers="Ctrl,Shift" action="DialogUndoHistory" />

  <bind key="x" modifiers="Ctrl" action="EditCut" display="true" />
  <bind key="X" modifiers="Ctrl" action="EditCut" />

  <bind key="c" modifiers="Ctrl" action="EditCopy" display="true" />
  <bind key="C" modifiers="Ctrl" action="EditCopy" />

  <bind key="v" modifiers="Ctrl" action="EditPaste" display="true" />
  <bind key="V" modifiers="Ctrl" action="EditPaste" />

  <bind key="v" modifiers="Ctrl,Shift" action="EditPasteStyle" display="true" />
  <bind key="V" modifiers="Ctrl,Shift" action="EditPasteStyle" />

  <bind key="v" modifiers="Ctrl,Alt" action="EditPasteInPlace" display="true" />
  <bind key="V" modifiers="Ctrl,Alt" action="EditPasteInPlace" />

  <bind action="EditPasteSize" />
  <bind action="EditPasteWidth" />
  <bind action="EditPasteHeight" />
  <bind action="EditPasteSizeSeparately" />
  <bind action="EditPasteWidthSeparately" />
  <bind action="EditPasteHeightSeparately" />

  <bind key="Delete" action="EditDelete" display="true" />
  <bind key="KP_Delete" action="EditDelete" />
  <bind key="BackSpace" action="EditDelete" />

  <bind key="d" modifiers="Ctrl" action="EditDuplicate" display="true" />
  <bind key="D" modifiers="Ctrl" action="EditDuplicate" />

  <bind key="d" modifiers="Alt" action="EditClone" display="true" />
  <bind key="D" modifiers="Alt" action="EditClone" />

  <bind key="d" modifiers="Alt,Shift" action="EditUnlinkClone" display="true" />
  <bind key="D" modifiers="Alt,Shift" action="EditUnlinkClone" />

  <bind key="d" modifiers="Shift" action="EditCloneSelectOriginal" display="true" />
  <bind key="D" modifiers="Shift" action="EditCloneSelectOriginal" />

  <bind key="a" modifiers="Ctrl" action="EditSelectAll" display="true" />
  <bind key="A" modifiers="Ctrl" action="EditSelectAll" />

  <bind action="EditClearAll" />

  <bind key="a" modifiers="Ctrl,Alt" action="EditSelectAllInAllLayers" display="true" />
  <bind key="A" modifiers="Ctrl,Alt" action="EditSelectAllInAllLayers" />

  <bind key="exclam" action="EditInvert" display="true" />
  <bind key="exclam" modifiers="Shift" action="EditInvert" />

  <bind key="exclam" modifiers="Alt" action="EditInvertInAllLayers" display="true" />
  <bind key="exclam" modifiers="Alt,Shift" action="EditInvertInAllLayers" />

  <bind key="Tab" action="EditSelectNext" display="true" />
  <bind key="ISO_Left_Tab" action="EditSelectNext" />
  <bind key="Tab" modifiers="Shift" action="EditSelectPrev" display="true" />
  <bind key="ISO_Left_Tab" modifiers="Shift" action="EditSelectPrev" />

  <bind key="Escape" action="EditDeselect" /> 

  <bind key="7" action="EditNextPathEffectParameter" display="true" />

  <!-- Objects/selection -->

  <bind key="h" action="ObjectFlipHorizontally" display="true" />
  <bind key="H" action="ObjectFlipHorizontally" />

  <bind key="v" action="ObjectFlipVertically" display="true" />
  <bind key="V" action="ObjectFlipVertically" />

  <bind key="Home" action="SelectionToFront" display="true" />
  <bind key="KP_Home" action="SelectionToFront" />

  <bind key="End" action="SelectionToBack" display="true" />
  <bind key="KP_End" action="SelectionToBack" />

  <bind key="Page_Up" action="SelectionRaise" display="true" />
  <bind key="KP_Page_Up" action="SelectionRaise" />

  <bind key="Page_Down" action="SelectionLower" display="true" />
  <bind key="KP_Page_Down" action="SelectionLower" />

  <bind key="g" modifiers="Ctrl" action="SelectionGroup" display="true" />
  <bind key="G" modifiers="Ctrl" action="SelectionGroup" />
  <bind key="u" modifiers="Ctrl,Shift" action="SelectionGroup" />
  <bind key="U" modifiers="Ctrl,Shift" action="SelectionGroup" />

  <bind key="g" modifiers="Ctrl,Shift" action="SelectionUnGroup" display="true" />
  <bind key="G" modifiers="Ctrl,Shift" action="SelectionUnGroup" />
  <bind key="u" modifiers="Ctrl" action="SelectionUnGroup" />
  <bind key="U" modifiers="Ctrl" action="SelectionUnGroup" />

  <bind key="b" modifiers="Alt" action="SelectionCreateBitmap" display="true" />
  <bind key="B" modifiers="Alt" action="SelectionCreateBitmap" />

  <bind key="b" modifiers="Alt,Shift" action="SelectionTrace" display="true" />
  <bind key="B" modifiers="Alt,Shift" action="SelectionTrace" />

  <bind key="i" modifiers="Alt" action="ObjectsToPattern" display="true" />
  <bind key="I" modifiers="Alt" action="ObjectsToPattern" />

  <bind key="i" modifiers="Alt,Shift" action="ObjectsFromPattern" display="true" />
  <bind key="I" modifiers="Alt,Shift" action="ObjectsFromPattern" />
  
  <bind key="g" modifiers="Shift" action="ObjectsToGuides" display="true" />
  <bind key="G" modifiers="Shift" action="ObjectsToGuides" />

  <bind action="ObjectSetMask" />
  <bind action="ObjectUnSetMask" />

  <bind action="ObjectSetClipPath" />
  <bind action="ObjectUnSetClipPath" />

  <!-- FIXME: currently these bypass the verbs, so the verbs are not bound to ctrl+[] as they should be -->
  <bind action="ObjectRotate90" /> 
  <bind action="ObjectRotate90CCW" /> 

  <bind action="ObjectRemoveTransform" /> 

<!-- Path -->

  <bind key="c" modifiers="Ctrl,Shift" action="ObjectToPath" display="true" />
  <bind key="C" modifiers="Ctrl,Shift" action="ObjectToPath" />

  <bind key="c" modifiers="Ctrl,Alt" action="StrokeToPath" display="true" />
  <bind key="C" modifiers="Ctrl,Alt" action="StrokeToPath" />

  <bind key="k" modifiers="Ctrl" action="SelectionCombine" display="true" />
  <bind key="K" modifiers="Ctrl" action="SelectionCombine" />

  <bind key="k" modifiers="Ctrl,Shift" action="SelectionBreakApart" display="true" />
  <bind key="K" modifiers="Ctrl,Shift" action="SelectionBreakApart" />

  <bind key="plus" modifiers="Ctrl" action="SelectionUnion" display="true" />
  <bind key="KP_Add" modifiers="Ctrl" action="SelectionUnion" />
  <bind key="plus" modifiers="Ctrl,Shift" action="SelectionUnion" />

  <bind key="asterisk" modifiers="Ctrl" action="SelectionIntersect" display="true" />
  <bind key="KP_Multiply" modifiers="Ctrl" action="SelectionIntersect" />
  <bind key="asterisk" modifiers="Ctrl,Shift" action="SelectionIntersect" />

  <bind key="minus" modifiers="Ctrl" action="SelectionDiff" display="true" />
  <bind key="underscore" modifiers="Ctrl" action="SelectionDiff" />
  <bind key="underscore" modifiers="Ctrl,Shift" action="SelectionDiff" />
  <bind key="KP_Subtract" modifiers="Ctrl" action="SelectionDiff" />
  <bind key="minus" modifiers="Ctrl,Shift" action="SelectionDiff" />

  <bind key="asciicircum" modifiers="Ctrl" action="SelectionSymDiff" display="true" /> <!-- ^ -->
  <bind key="asciicircum" modifiers="Ctrl,Shift" action="SelectionSymDiff" />

  <bind key="slash" modifiers="Ctrl,Alt" action="SelectionCutPath" display="true" />
  <bind key="slash" modifiers="Ctrl,Alt,Shift" action="SelectionCutPath" />

  <bind key="slash" modifiers="Ctrl" action="SelectionDivide" display="true" />
  <bind key="KP_Divide" modifiers="Ctrl" action="SelectionDivide" />
  <bind key="slash" modifiers="Ctrl,Shift" action="SelectionDivide" />

  <bind key="parenright" modifiers="Ctrl" action="SelectionOffset" display="true" />
  <bind key="parenright" modifiers="Ctrl,Shift" action="SelectionOffset" />
  <bind key="0" modifiers="Ctrl,Shift" action="SelectionOffset" />
  <bind key="0" modifiers="Ctrl" action="SelectionOffset" />
  
  <bind key="parenright" modifiers="Alt" action="SelectionOffsetScreen" display="true" />
  <bind key="0" modifiers="Alt" action="SelectionOffsetScreen" />

  <bind key="parenright" modifiers="Alt,Shift" action="SelectionOffsetScreen10" display="true" />
  <bind key="0" modifiers="Alt,Shift" action="SelectionOffsetScreen10" />

  <bind key="parenleft" modifiers="Ctrl" action="SelectionInset" display="true" />
  <bind key="parenleft" modifiers="Ctrl,Shift" action="SelectionInset" />
  <bind key="9" modifiers="Ctrl,Shift" action="SelectionInset" />
  <bind key="9" modifiers="Ctrl" action="SelectionInset" />

  <bind key="parenleft" modifiers="Alt" action="SelectionInsetScreen" display="true" />
  <bind key="9" modifiers="Alt" action="SelectionInsetScreen" />

  <bind key="parenleft" modifiers="Alt,Shift" action="SelectionInsetScreen10" display="true" />
  <bind key="9" modifiers="Alt,Shift" action="SelectionInsetScreen10" />

  <bind key="j" modifiers="Ctrl" action="SelectionDynOffset" display="true" />
  <bind key="J" modifiers="Ctrl" action="SelectionDynOffset" />

  <bind key="j" modifiers="Ctrl,Alt" action="SelectionLinkedOffset" display="true" />
  <bind key="J" modifiers="Ctrl,Alt" action="SelectionLinkedOffset" />

  <bind key="l" modifiers="Ctrl" action="SelectionSimplify" display="true" />
  <bind key="L" modifiers="Ctrl" action="SelectionSimplify" />

  <bind action="SelectionReverse" />

<!-- Text -->

  <bind key="w" modifiers="Alt" action="ObjectFlowText" display="true" />
  <bind key="W" modifiers="Alt" action="ObjectFlowText" />

  <bind key="w" modifiers="Alt,Shift" action="ObjectUnFlowText" display="true" />
  <bind key="W" modifiers="Alt,Shift" action="ObjectUnFlowText" />

  <bind action="SelectionTextToPath" />
  <bind action="SelectionTextFromPath" />

  <bind action="ObjectFlowtextToText" />
  <bind action="SelectionTextRemoveKerns" />

  <bind key="k" modifiers="Ctrl,Alt" action="DialogSpellcheck" display="true" />
  <bind key="K" modifiers="Ctrl,Alt" action="DialogSpellcheck" />

<!-- Layers -->

  <bind key="N" modifiers="Ctrl,Shift" action="LayerNew" display="true" />
  <bind key="n" modifiers="Ctrl,Shift" action="LayerNew" />

  <bind action="LayerRename" />
  <bind key="Page_Up" modifiers="Ctrl" action="LayerNext" display="true" />
  <bind key="KP_Page_Up" modifiers="Ctrl" action="LayerNext" />
  <bind key="Page_Down" modifiers="Ctrl" action="LayerPrev" display="true" />
  <bind key="KP_Page_Down" modifiers="Ctrl" action="LayerPrev" />
  <bind action="LayerDelete" />

  <bind key="Page_Up" modifiers="Ctrl,Shift" action="LayerRaise" display="true" />
  <bind key="KP_Page_Up" modifiers="Ctrl,Shift" action="LayerRaise" />

  <bind key="Page_Down" modifiers="Ctrl,Shift" action="LayerLower" display="true" />
  <bind key="KP_Page_Down" modifiers="Ctrl,Shift" action="LayerLower" />

  <bind key="Home" modifiers="Ctrl,Shift" action="LayerToTop" display="true" />
  <bind key="KP_Home" modifiers="Ctrl,Shift" action="LayerToTop" />

  <bind key="End" modifiers="Ctrl,Shift" action="LayerToBottom" display="true" />
  <bind key="KP_End" modifiers="Ctrl,Shift" action="LayerToBottom" />

  <bind key="Page_Up" modifiers="Shift" action="LayerMoveToNext" display="true" />
  <bind key="KP_Page_Up" modifiers="Shift" action="LayerMoveToNext" />

  <bind key="Page_Down" modifiers="Shift" action="LayerMoveToPrev" display="true" />
  <bind key="KP_Page_Down" modifiers="Shift" action="LayerMoveToPrev" />

  <bind key="l" modifiers="Ctrl,Shift" action="DialogLayers" display="true" />
  <bind key="L" modifiers="Ctrl,Shift" action="DialogLayers" />  

<!-- Dialogs -->

  <bind key="x" modifiers="Ctrl,Shift" action="DialogXMLEditor" display="true" />
  <bind key="X" modifiers="Ctrl,Shift" action="DialogXMLEditor" />

  <bind key="d" modifiers="Ctrl,Shift" action="DialogDocumentProperties" display="true" />
  <bind key="D" modifiers="Ctrl,Shift" action="DialogDocumentProperties" />

  <bind key="a" modifiers="Ctrl,Shift" action="DialogAlignDistribute" display="true" />
  <bind key="A" modifiers="Ctrl,Shift" action="DialogAlignDistribute" />

  <bind key="t" modifiers="Ctrl,Shift" action="DialogText" display="true" />
  <bind key="T" modifiers="Ctrl,Shift" action="DialogText" />

  <bind key="p" modifiers="Ctrl,Shift" action="DialogPreferences" display="true" />
  <bind key="P" modifiers="Ctrl,Shift" action="DialogPreferences" />

  <bind key="f" modifiers="Ctrl,Shift" action="DialogFillStroke" display="true" />
  <bind key="F" modifiers="Ctrl,Shift" action="DialogFillStroke" />

  <bind key="f" modifiers="Ctrl" action="DialogFind" display="true" />
  <bind key="F" modifiers="Ctrl" action="DialogFind" />

  <bind key="m" modifiers="Ctrl,Shift" action="DialogTransform" display="true" />
  <bind key="M" modifiers="Ctrl,Shift" action="DialogTransform" />

  <bind key="o" modifiers="Ctrl,Shift" action="DialogObjectProperties" display="true" />
  <bind key="O" modifiers="Ctrl,Shift" action="DialogObjectProperties" />

  <bind key="w" modifiers="Ctrl,Shift" action="DialogSwatches" display="true" />
  <bind key="W" modifiers="Ctrl,Shift" action="DialogSwatches" />

  <bind key="ampersand" modifiers="Ctrl,Shift" action="DialogLivePathEffect" />
  <bind key="7" modifiers="Ctrl,Shift" action="DialogLivePathEffect" display="true" />

  <bind key="ampersand" modifiers="Ctrl" action="PasteLivePathEffect" />
  <bind key="7" modifiers="Ctrl" action="PasteLivePathEffect" display="true" />

  <bind action="RemoveLivePathEffect" />

  <bind action="DialogMetadata" />
  <bind action="DialogClonetiler" />
  <bind action="DialogGridArrange" />
  <bind action="DialogScript" />
  <bind action="DialogDebug" />
  <bind action="DialogInput" />

  <bind key="F12" action="DialogsToggle" display="true" />

<!-- Help -->

  <bind action="HelpAboutExtensions" />
  <bind action="HelpAboutMemory" />
  <bind action="HelpAbout" />
  <!-- There are also verbs for tutorials, if you really need them -->
  <!-- Other commands in Help are implemented as extensions, with ids of org.inkscape.help.* -->

<!-- Effects -->

  <bind action="EffectLast" /> 
  <bind action="EffectLastPref" /> 
  <!-- You can also assign keys to individual effects. The action should be set to he
  effect id from the .inx file, for example "org.ekips.filter.addnodes" for the Add
  Nodes effect. -->

</keys>
シノバー さんが書きました:Altキーと他のいくつかのキーの組み合わせ」であって、Altキーそのものじゃない。
ウィンドウマネージャーはパピーの場合JWMなので、JWMの設定が問題。

メニュー>デスクトップ>JWMの設定 に「キーボードのショートカット」があります。
 従って、inkscapeのdefault.xmlによるキー割り当てとパピーのJWMの設定との
摺り合わせが必要ではないでしょう。
CORE-i7-6700HQ uEFI ram:8GB
Full: Quirky Beaver64-8.7.1(64)
save2dir: Artfulpup-17.11,Dpup-7.5,Xenialpup 7.0.8.1(32)
Slimjet 21.0.8.0(32/64)
cygnus_odile
記事: 665
登録日時: 09/08/16(日) 14:30

Re: リナックス特有の画面を掴むための「ALt」キーの指定を変更したい(inkscapeでバッティングする)

投稿記事 by cygnus_odile »

JWM で、 ALT+ マウス左ボタン(Pointer_Button1)の振る舞いを変更する設定はできなかったかと思います。
 以前、 Puppy Lucid 528 (英語版)で採用されていた、OpenBox だと、設定の変更によって可能だったと記憶・・・。 ちょっと今詳細には思い出せないのですけど。
akochang
記事: 6
登録日時: 13/07/31(水) 03:47

Re: リナックス特有の画面を掴むための「ALt」キーの指定を変更したい(inkscapeでバッティングする)

投稿記事 by akochang »

えっと、、皆さん、ありがとうございます。(皆さん=シノバーさん / 486HAさん / cygnus_odileさん)

ako は、、オツムが良くないです。ひとつひとつ理解していこうと思います。
そもそも英語文が苦手で、完全に理解できるまでいつも相当な時間を要してます。

英語のGUIのままだとしっくり頭に入ってこないんで、いくつかのファイルを翻訳してみました。
とりあえず、シノバーさんに教えていただいたところを日本語に変えてみました。
(po とか、mo とかわかんないので、いつもファイルを直接に書き換えてます)
画像
画像

cuts ファイルの中身は、以下でした。まんまコピペします。

コード: 全て選択

key="Up" up
key="Down" down
key="Right" right
key="Left" left
key="h" left
key="j" down
key="k" up
key="l" right
key="Return" select
mask="CS"_key="c" exec:PupControl
key="Escape" escape
key="F12" root:3
key="Super_L" root:3
mask="A"_key="Tab" next
mask="A"_key="F4" close
mask="A"_key="F10" maximize
mask="A"_key="F6" minimize
mask="A"_key="#" desktop#
mask="A"_key="F1" root:3
mask="A"_key="F2" window
keycode="160" exec:amixer_-q
keycode="174" exec:amixer_-q
keycode="176" exec:amixer_-q
keycode="178" exec:defaultbrowser
keycode="111" exec:mtpaintsnapshot.sh
で、、結局のところ、何処をどういじればよいのか、、まったく理解できていません。
理解できたのは 「ここに組み合わせを書き込めばショートカットを追加・変更できる」 ということだけです。

そもそも「Alt」との組み合わせで「画面を掴む」指定の "Action" は、どう書くのかがわかりません。
だから、486HAさんに教えていただいた inkscape-0.48.4.tar.bz2 も翻訳してみようと思ってます。

どうやら ako には、かなり時間がかかりそうです。。
akochang
Puppy Linux 0.52 Lupu / HDフルーガルインストールと、USBフラッシュの2種を使用中です。
プログラミングとかには無知なので、make とか、そういったことはわかりません。
でもネットでいろいろ拝見しながら、頑張ってパピーを育ててます。とても可愛いです。
画像
SONY VAIO / PCG-6R2N
Processor / Intel(R) Celeron(R) M 1.73GHz
Memory / 1545MB
cygnus_odile
記事: 665
登録日時: 09/08/16(日) 14:30

Re: リナックス特有の画面を掴むための「ALt」キーの指定を変更したい(inkscapeでバッティングする)

投稿記事 by cygnus_odile »

akochang さんが書きました: そもそも「Alt」との組み合わせで「画面を掴む」指定の "Action" は、どう書くのかがわかりません。
JWM のキーバインドの指定は、例えば、 /root/.jwm/jwm-personal を見ると、
<!-- Key bindings --> 以降に記載されているので、分かりますが、

「Alt」との組み合わせ: Mask="A" で指定します。ウインドウの移動アクションは、 move です。
なので、
<Key mask="A" key="何かのキー">move</Key>
の形式です。
ただし、 ALT+マウス左ボタンを無効にできないかと思って、
<Key mask="A" key="Pointer_Button1">none</Key>
としてみましたが、 うまく無効化されませんでした。 やはり、ALT+マウス左ボタンでのウインドウ移動機能は、 JWM では今のところいじれないみたいです。
akochang
記事: 6
登録日時: 13/07/31(水) 03:47

Re: リナックス特有の画面を掴むための「ALt」キーの指定を変更したい(inkscapeでバッティングする)

投稿記事 by akochang »

cygnus_odileさん、ありがとうございます。
JWM側の設定変更は、どうも、、無理みたいですね。。

486HAさんのアドバイス↓を見て、
↑「486HAさんが書きました」とする方法がわかりません。。。
従って、inkscapeのdefault.xmlによるキー割り当てとパピーのJWMの設定との摺り合わせが必要ではないでしょう。 ←たぶん「必要ではないでしょうか?」ですよね?(ako)
ならば inkscape 側で設定を変えればいいんじゃない?と思って
http://inkscape.org/doc/keys048.ja.htmlを見てみたのですが、、、

単純に「Alt」を「Ctrl」に変更するだけでは、今度は inkscape 内でバッティングしてしまいそうです。
というか、ほとんどが「Alt」と「Ctrl」使用のショートカットなので現実的ではありません。

となると「Alt」を「Ctrl」以外の他の修飾キーにしなければいけないと思うのですが、
そもそも目の前のキーボードには「Meta」「Super」「Hyper」という文字が見あたりません。
それらしきものは「Win」マークのキーだけです。押したらパピーのメニューが開きます。

それと、、cygnus_odileさんに教えていただいた場所には、
jwmrc-personal と jwmrc-personal2 と jwmrc-personal-bak がありましたが、
jwmrc-personal と jwmrc-personal2 の違いは何でしょうか?(これも一種のバックアップ?)
↑cygnus_odileさんが書きました
JWM のキーバインドの指定は、例えば、 /root/.jwm/jwm-personal を見ると、←たぶん「/root/.jwm/jwmrc-personal」ですよね?(ako)
上記ファイルの中の記述に、

コード: 全て選択

Key mask="CS" 
Key keycode="160"
Key keycode="174"
Key keycode="176"
Key keycode="178"
Key keycode="111"
という部分がありますが、"CS","160","174","176","178","111"がどのキーを差すのか?
がわからなくて、混乱してます。。

ネットで検索したんですが、情報が見つからないんです。
「キーバインドとは」とか、「Meta」とは、とかいう解説だけは出てくるんですが、
実際に目の前のどのキーを差しているのか?を教えてくれる情報に出会えないでいます。

かなり煮詰まってきました。。
puppy で inkscape の本気使用は、現時点では諦めた方が良いのでしょうか。。
akochang
Puppy Linux 0.52 Lupu / HDフルーガルインストールと、USBフラッシュの2種を使用中です。
プログラミングとかには無知なので、make とか、そういったことはわかりません。
でもネットでいろいろ拝見しながら、頑張ってパピーを育ててます。とても可愛いです。
画像
SONY VAIO / PCG-6R2N
Processor / Intel(R) Celeron(R) M 1.73GHz
Memory / 1545MB
486HA
記事: 1142
登録日時: 11/03/06(日) 14:31

Re: リナックス特有の画面を掴むための「ALt」キーの指定を変更したい(inkscapeでバッティングする)

投稿記事 by 486HA »

akochang さんが書きました: ネットで検索したんですが、情報が見つからないんです。
「キーバインドとは」とか、「Meta」とは、とかいう解説だけは出てくるんですが、
実際に目の前のどのキーを差しているのか?を教えてくれる情報に出会えないでいます。

かなり煮詰まってきました。。
puppy で inkscape の本気使用は、現時点では諦めた方が良いのでしょうか。。
「ネット検索」でさえ、それなりノウハウと言うか閃きと場数を踏む必要があります。
inkscape 0.48なら、/usr/sahre/inkscape/keys/default.xmlを編集してキー割り当てを変更できます。

コード: 全て選択

<?xml version="1.0"?>
<keys name="Inkscape default">
<!--  
This file contains the default Inkscape keyboard shortcuts. In each "bind" element:
- The "key" attribute contains the key name. The names are the same as those in the
<gdk/gdkkeysyms.h> header file but without the leading "GDK_". If you don't have GDK
source locally, you can view that file at:

  http://git.gnome.org/browse/gtk+/plain/gdk/gdkkeysyms.h

- The "modifiers" attribute contains a comma-separated list of modifiers, which can be
one or more of: "Ctrl", "Shift", "Alt".
 Altキーがバッティングするのなら[Fn]キーで代用する手もあると思います。
CORE-i7-6700HQ uEFI ram:8GB
Full: Quirky Beaver64-8.7.1(64)
save2dir: Artfulpup-17.11,Dpup-7.5,Xenialpup 7.0.8.1(32)
Slimjet 21.0.8.0(32/64)
double_star
記事: 10
登録日時: 10/05/03(月) 22:49

Re: リナックス特有の画面を掴むための「ALt」キーの指定を変更したい(inkscapeでバッティングする)

投稿記事 by double_star »

流れはあんまり理解してなくて恐縮ですが
akochang さんが書きました: となると「Alt」を「Ctrl」以外の他の修飾キーにしなければいけないと思うのですが、
そもそも目の前のキーボードには「Meta」「Super」「Hyper」という文字が見あたりません。
普通の日本語キーボードだと Meta は Alt 兼用になってて色々不便なので、自分は Meta は「無変換」や「ひらがな/カタカナ」あたりにバインド仕直してますが。

設定は xkb なんたらとか GUI もあるのかも知れませんが面倒なので ~/.Xmodmap 直接書き換えてます

コード: 全て選択

!
! remap alt and meta
!
clear Mod1
clear Mod3
keycode 64 = Alt_L
keycode 113 = Alt_R
keycode 125 =
keycode 156 =
keycode 131 = Meta_L
keycode 208 = Meta_R
add Mod1 = Alt_L
add Mod1 = Alt_R
add Mod3 = Meta_L
add Mod3 = Meta_R
cygnus_odile
記事: 665
登録日時: 09/08/16(日) 14:30

Lucid 5.2 系(英語版)なら 超簡単です -- Re: 「ALt」キーの指定を変更したい

投稿記事 by cygnus_odile »

akochang さん、 投稿の署名欄に、Puppy Linux 0.52 Lupu と記載されているということは、 使われているのは、 Lucid 5.2 系の英語版Puppy なのでしょうか?
いじってなければ、jwm ではなく、 Openbox + fbpanel のデスクトップを使っているはずです。
端末で、

コード: 全て選択

# ps | grep openbox
と打って確認してみてください。

コード: 全て選択

18263 root       0:00 openbox
25748 root       0:00 grep openbox
なら、 JWM でなく、 Openbox が動いています。

※ : 以下の記載は、英語版 Lucid Puppy 5.2.8 version 005 (April 5, 2012)+ lang_pack_ja-1.4.sfs を前提としています。
 Lucid Puppy 5.2.5 や 5.2.8 では、標準のウィンドウマネージャ は JWM ではなく、Openbox で、 デスクトップ環境は、Openbox + fbpanel で構築されています。(Lupu 5.2.0 もそうだったかもしれない。)

Openbox なら rc.xml を弄ることで簡単に、操作に対するデスクトップ/ウィンドウの挙動を変更することができます。

以下の、url を 参照のこと。
http://openbox.org/wiki/Help:Bindings#Mouse_bindings

で、ここからが本番。openbox を用いている Lucid Puppy 5.2 系 ですと、

 /root/.config/openbox/rc.xml

をテキストエディタで開くと、268行の "<mouse>" 以降にマウスの挙動が記述され、
285行目あたりに、以下のように記述されています。

コード: 全て選択

<mousebind button="A-Left" action="Drag">
  <action name="Move"/>
</mousebind>
 これは、
  「Altキーでモディファイされたマウスの左ボタン」を押して、「ドラッグ」する時は、『ウィンドウを移動』する
 という動作を記述しています。

 ここの記載を改変して保存したのち、X-サーバーをリスタートすれば、オッケイです。

ALTキーを押しながらマウスドラッグしたときにウインドウを移動する挙動を、

1)無効にするなら、以下のように、( <!----> で挟んで、)コメントアウトする。

コード: 全て選択

<!--
<mousebind button="A-Left" action="Drag">
  <action name="Move"/>
</mousebind>
-->
2)Windows キー + マウスドラッグに割り当てるなら、"A-Left" を "W-Left" に変更する。

コード: 全て選択

<mousebind button="W-Left" action="Drag">
  <action name="Move"/>
</mousebind>
  (私が常用しているキーボードは、83キーで、「Windows-key」なんてついてないのですけど、ノートパソコン本体にはWindowsキーがありましたので、動作を確認しました。)


3)ウインドウのタイトル(「開いているファイル名 - Inkscape」 だと仮定)によってAlt+マウスドラッグの挙動を変えたいなら、

コード: 全て選択

<mousebind button="A-Left" action="Drag">
  <action name="If">
    <title>* - Inkscape</title>
    <then>
    </then>
    <else>
      <action name="Move"/>
    </else>
  </action>
</mousebind>
   (※・・・この(3)は動作確認してないので間違ってるかも)

以上のように書き換えてはいかがでしょう。

取敢えず、 ALT+ウインドウ枠内ドラッグを(1)無効化、(2)Windows キーに割り当て が出来ることは確認しました。

お使いの、Puppy のバージョン次第ですが、
 ・英語版 Lucid Puppy 5.2.8 ver 005 + lang_pack_ja-1.4.sfs に乗り換えて、
 ・標準の OpenBox 環境にて、試されることをお勧めいたします。
  ・・・jwm では、無理 なので。

ちなみに、英語版 Lucid Puppy 5.2.8 ver 005 は、こちらから辿って入手可能です。
Lucid Puppy News
    Updated Lucid ISO 005 APR 5 2012 >>
http://diddywahdiddy.net/Puppy500/lupu-528.005.iso
  
486HA
記事: 1142
登録日時: 11/03/06(日) 14:31

Re: リナックス特有の画面を掴むための「ALt」キーの指定を変更したい(inkscapeでバッティングする)

投稿記事 by 486HA »

基本に戻って考えて見ましょう。
1、そもそも、どのキーに何の機能を割り当てたいのか?
2、割り当てたいキーは機能が固定されておらず変更可能か?

 1について、inkscape 0.48以降はinkscape上でキー・バインド変更ができます。
 2Puppyに限らず機能が固定的に規定されているキーは変更できません。

 こちらのinkscape内ではキー・バインドが変更できます。 
viewtopic.php?f=27&t=2355&p=17194#p17194
添付ファイルを見るにはパーミッションが必要です
CORE-i7-6700HQ uEFI ram:8GB
Full: Quirky Beaver64-8.7.1(64)
save2dir: Artfulpup-17.11,Dpup-7.5,Xenialpup 7.0.8.1(32)
Slimjet 21.0.8.0(32/64)
返信する