]> code.delx.au - spectrwm/commitdiff
Add details to man page on how to bind non-latin characters.
authorReginald Kennedy <rk@rejii.com>
Sat, 12 May 2012 22:49:47 +0000 (06:49 +0800)
committerReginald Kennedy <rk@rejii.com>
Mon, 14 May 2012 15:04:18 +0000 (23:04 +0800)
From: Rovanion Luckey <rovanion.luckey@gmail.com>

ok marco

spectrwm.1

index 1bbbedae12ba7148d7d9873cdc91d2cac3ae2245..2ec43fa28283e993ad6a602cc20c627e30552026 100644 (file)
@@ -616,6 +616,24 @@ To use the currently defined
 specify MOD as the modifier key.
 .Pp
 Multiple key combinations may be bound to the same action.
+.Pp
+To bind non-latin characters such as å or π you must enter the xkb
+character name instead of the character itself. Run xev, focus the window
+and press the specific key and in the terminal output read the symbol name.
+In the fallowing example for å:
+.Bd -literal -offset indent
+KeyPress event, serial 41, synthetic NO, window 0x2600001,
+    root 0x15a, subw 0x0, time 106213808, (11,5), root:(359,823),
+    state 0x0, keycode 24 (keysym 0xe5, aring), same_screen YES,
+    XLookupString gives 2 bytes: (c3 a5) "å"
+    XmbLookupString gives 2 bytes: (c3 a5) "å"
+    XFilterEvent returns: False
+.Ed
+.Pp
+The xkb name is aring. In other words, in .spectrwm.conf add:
+.Bd -literal -offset indent
+bind[program] = MOD+aring
+.Ed
 .Sh KEYBOARD MAPPING FILES
 Keyboard mapping files for several keyboard layouts are listed
 below.