PekWM - 共通事項 - キー定義

 クラウディア
1. 概要
2. 設定
3. キーの記述

1. 概要

 キー定義(ショートカットキー)について記述します。

2. 設定

 設定は、どちらのプラットフォームも

~/.pekwm/keys
 に書いてあって、おおまかには、同じかな。  特に、最初の数十行は全く同じです。  さわりだけ、掲載しますと。

INCLUDE = "vars"

Global {
# - - ----------------------------------------------- - -
# Simple bindings to most frequently used actions.
#
# Adding your own frequently used actions is easy -
# just copy it over from CHAINS and edit the keypress!
        # Moving in frames
        KeyPress = "Mod1 Tab" { Actions = "NextFrameMRU TempRaise" }
        KeyPress = "Mod1 Shift Tab" { Actions = "PrevFrameMRU TempRaise" }
        KeyPress = "Mod1 Ctrl Tab" { Actions = "NextFrame EndRaise" }
        KeyPress = "Mod1 Ctrl Shift Tab" { Actions = "PrevFrame EndRaise" }
        KeyPress = "Mod4 Tab" { Actions = "ActivateClientRel 1" }
        KeyPress = "Mod4 Shift Tab" { Actions = "ActivateClientRel -1" }
        KeyPress = "Mod4 Ctrl Right" { Actions = "MoveClientRel 1" }
        KeyPress = "Mod4 Ctrl Left" { Actions = "MoveClientRel -1" }
        KeyPress = "Mod4 Left" { Actions = "FocusDirectional Left" }
        KeyPress = "Mod4 Right" { Actions = "FocusDirectional Right" }
        KeyPress = "Mod4 Up" { Actions = "FocusDirectional Up" }
        KeyPress = "Mod4 Down" { Actions = "FocusDirectional Down" }
        # Moving in workspaces
        KeyPress = "Ctrl Mod1 Left" { Actions = "GotoWorkspace Left" }
        KeyPress = "Ctrl Mod1 Right" { Actions = "GotoWorkspace Right" }
        KeyPress = "Ctrl Mod1 Up" { Actions = "GotoWorkspace Up" }
 てな感じになっております。  デフォルトの状態で、「FreeBSD」で 339行、「SparkyLinux」で 316行あります。  基本的な文法は

カテゴリ(?){
	KeyPress = "キーの記述" { Actions = "動作の記述" }
	・・・
}
 という記述のようです。  キーアクションが複数ある場合は、ネストさせているようです。

3. キーの記述

 キーは、数字キーはそのまま、英字キーは、大文字で記述します。  特殊キーの記述について、わたしが使っているものを掲載しておきます。
 キー   記述   備考 
Alt Mod1
Win Mod4
Ctrl Ctrl
Shift Shift
Print Print

 Ctrl+Shift+A のようなキーは


	KeyPress = "Ctrl Shift A" { Actions = "..." }
earthcar(アースカー)