File:  [New MirBSD CVS] / contrib / samples / dot.Xmodmap
Revision 1.34: download - view: text, annotated - select for diffs - revision graph
Tue Jul 4 21:12:28 2023 UTC (8 months, 3 weeks ago) by tg - 10064A48AFF29DE23B5
Branches: MAIN
CVS tags: HEAD
Diff to previous 1.33: preferred, coloured
Changes since revision 1.33: +5 -4 lines
MirKeyboardLayout 4.11: M-S-Bksp generates combining strikethrough

No change to KBDmir2A (uses ANSI codepage 1252, not UCS).
KBDmir2W needs a corresponding change (that, and more…).

! $MirOS: contrib/samples/dot.Xmodmap,v 1.34 2023/07/04 21:12:28 tg Exp $
!-
! Copyright © 2004, 2007, 2008, 2010, 2012, 2016, 2017, 2021,
!	      2023
!	mirabilos <m@mirbsd.org>
!
! Provided that these terms and disclaimer and all copyright notices
! are retained or reproduced in an accompanying document, permission
! is granted to deal in this work without restriction, including un-
! limited rights to use, publicly perform, distribute, sell, modify,
! merge, give away, or sublicence.
!
! This work is provided “AS IS” and WITHOUT WARRANTY of any kind, to
! the utmost extent permitted by applicable law, neither express nor
! implied; without malicious intent or gross negligence. In no event
! may a licensor, author or contributor be held liable for indirect,
! direct, other damage, loss, or other issues arising in any way out
! of dealing in the work, even if advised of the possibility of such
! damage or existence of a defect, except proven that it results out
! of said person’s immediate fault when using the work as intended.
!-
! MirKBD Revision 4.11, English (Europe) with Meta key, for XFree86®
!
! Advanced .Xmodmap file with US-based layout plus Meta and Compose,
! Meta emulated by Mode_switch, for 102-key, 104/105-key, and laptop
! keyboards. All ISO 8859-1 characters are directly typable, as well
! as some extra characters (most of which are in codepage 1252). The
! layout is documented in kbd-xf86 in this directory. dash = 「 — 」
!
! Diversions from pristine XFree86(R) and Windows(R) 2000 US layout:
! • The Win_L key generates Alt_L	(e.g. for window managers)
! • The Alt_L key generates Mode_switch	(emulates Meta for X apps)
! • The Win_R key generates Meta_R	(adds 0x80 to latin1 code)
! • The Win_M key generates Compose, if present, for UCS/UTF-8 too
! • The < > | key generates Compose as well, if present
! • The CapsLock key generates Ellipsis, Euro, DE-DblQL, Trademark
! • The Tab key, with Mode_switch, generates EN-DblQL and EN-DblQR
! • The Return key, with Mode_switch, generates Bullet and en dash
! The following behavioural differences can be seen on NT platforms:
! • The “Meta” and “Mode_switch” function is done by the Alt_R key
! • The < > | (102nd) key does Ellipsis, Euro, DE-DblQL, Trademark
! • The Alt_L, Win_L, Win_R, CapsLock keys retain common behaviour
! • The Win_M key also keeps common behaviour; there is no Compose
! The following behavioural differences can be seen on X11 platform:
! † Alt_L is still Alt, Win_L is Meta; Alt_R has AltGr=Mode_switch
! • In unshifted states, Escape and U+0060 (`) have switched place
! • The ModeSwitch-F1 combination generates U+263B (☻) dark smiley
! • The ModeSwitch-F2 combination generates U+263A (☺) glad smiley
! • The ModeSwitch-F3 combination generates U+2639 (☹) down smiley
! • The ModeSwitch-F4 combination generates U+1E9E (ẞ) majuscle sz
! • The ModeSwitch-F5 combination generates U+FFFD (�) replacement
! • The ModeSwitch-F6 combination generates U+2025 (‥) TP interval
! • The ModeSwitch-F7 combination generates U+2018 (‘) left squote
! • The ModeSwitch-F8 combination generates U+2019 (’) right squot
! • The ModeSwitch-F9 combination generates U+0332 ( ̲) comb. under
! • The ModeSwitch-F10 combination generates U+0305 ( ̅) comb. over
! • The ModeSwitch-F11 combination generates U+2023 (‣) triangular
! • The ModeSwitch-F12 combination generates U+2011 (‑) nonbrkhyph
! • The ModeSwitch-Shift-F1 combination generates U+250C (┌) up-lf
! • The ModeSwitch-Shift-F2 combination generates U+2500 (─) horiz
! • The ModeSwitch-Shift-F3 combination generates U+2510 (┐) up-rt
! • The ModeSwitch-Shift-F4 combination generates U+2502 (│) -vert
! • The ModeSwitch-Shift-F5 combination generates U+2514 (└) lo-lf
! • The ModeSwitch-Shift-F6 combination generates U+2518 (┘) lo-rt
! • The ModeSwitch-Shift-F7 combination generates U+251C (├) dn-rt
! • The ModeSwitch-Shift-F8 combination generates U+2524 (┤) dn-lf
! • The ModeSwitch-Shift-F9 combination generates U+253C (┼) cross
! • The ModeSwitch-Shift-F10 combination generates U+252C (┬) h-dn
! • The ModeSwitch-Shift-F11 combination generates U+2534 (┴) h-up
! • The ModeSwitch-Shift-F12 combination generates U+2588 (█) fblk
! • Shift-ModeSwitch-Backspace generates U+0336 ( ̶) comb. striket.
! • ModeSwitch and arrow keys generates single-dashed (without) or
!   double-dashed (with shift) pictograph U+21[9D][0123] ↑←↓→ ⇑⇐⇓⇒
! • ModeSwitch + {Ins,Del}, {Home,End}, {PgUp,PgDn} generates wide
!   parenthesēs: (unshift/shift) 〈〉 《》 / 〔〕 【】 / 「」 『』
! • ModeSwitch-Shift-{Space,Esc} are wide space/creative heaven ䷀
! • ModeSwitch-HyphenMinus is U+2010 HYPHEN not U+00AD SOFT HYPHEN
! † CapsLock acts as †Compose† or †Ctrl† key, 102nd key makes …€„™
! Notes:
! • Lines beginning with a dagger ‘†’ denote options NOT chosen in
!   this copy of the keyboard layout by the customisation utility,
!   valid lines begin with ‘•’ (although CapsLock has two options)
! • The Win9x layout uses a florin ‘ƒ’ in place of U+2010, as it’s
!   only capable of representing codepoints in ANSI 8-bit (cp1252)
! See dot.Xmodmap.sh for the customisation utility mentioned above
!
! To use, run “setxkbmap -option grp_led:caps” (Mode_switch status
! shows on Caps LED, optional), “setxkbmap -option caps:none” (un‐
! configures CapsLock) and (having installed this file as .Xmodmap
! into your $HOME) “xmodmap ~/.Xmodmap” — put this into ~/.xinitrc
! and/or ~/.xsessionrc to run automatically at X startup.

keycode	0x09 =	grave		Escape			agrave		U4DC0
keycode	0x43 =	F1		XF86_Switch_VT_1	U263B		U250C
keycode	0x44 =	F2		XF86_Switch_VT_2	U263A		U2500
keycode	0x45 =	F3		XF86_Switch_VT_3	U2639		U2510
keycode	0x46 =	F4		XF86_Switch_VT_4	U1E9E		U2502
keycode	0x47 =	F5		XF86_Switch_VT_5	UFFFD		U2514
keycode	0x48 =	F6		XF86_Switch_VT_6	U2025		U2518
keycode	0x49 =	F7		XF86_Switch_VT_7	U2018		U251C
keycode	0x4A =	F8		XF86_Switch_VT_8	U2019		U2524
keycode	0x4B =	F9		XF86_Switch_VT_9	U0332		U253C
keycode	0x4C =	F10		XF86_Switch_VT_10	U0305		U252C
keycode	0x5F =	F11		XF86_Switch_VT_11	U2023		U2534
keycode	0x60 =	F12		XF86_Switch_VT_12	U2011		U2588
keycode	0x6F =	Print		Sys_Req			Print		Sys_Req
keycode	0x5C =	Print		Sys_Req			Print		Sys_Req
keycode	0x4E =	Scroll_Lock	Pointer_Accelerate	Scroll_Lock	Pointer_Accelerate
keycode	0x6E =	Pause		Break			Pause		Break
keycode	0x72 =	Pause		Break			Pause		Break

keycode	0x31 =	Escape		asciitilde		Escape		thorn
keycode	0x0A =	1		exclam			plusminus	exclamdown
keycode	0x0B =	2		at			twosuperior	Agrave
keycode	0x0C =	3		numbersign		threesuperior	sterling
keycode	0x0D =	4		dollar			acute		currency
keycode	0x0E =	5		percent			mu		yen
keycode	0x0F =	6		asciicircum		paragraph	THORN
keycode	0x10 =	7		ampersand		periodcentered	brokenbar
keycode	0x11 =	8		asterisk		cedilla		ordfeminine
keycode	0x12 =	9		parenleft		onesuperior	diaeresis
keycode	0x13 =	0		parenright		degree		copyright
keycode	0x14 =	minus		underscore		U2010		ssharp
keycode	0x15 =	equal		plus			onehalf		guillemotleft
keycode	0x16 =	BackSpace	Terminate_Server	ydiaeresis	U0336
keycode	0x6A =	Insert		Insert			U3008		U300A
keycode	0x61 =	Home		Home			U3014		U3010
keycode	0x63 =	Prior		Prior			U300C		U300E
keycode	0x4D =	Num_Lock	Pointer_EnableKeys	Num_Lock	Pointer_EnableKeys
keycode	0x70 =	KP_Divide	XF86_Ungrab		KP_Divide	XF86_Ungrab
keycode	0x3F =	KP_Multiply	XF86_ClearGrab		KP_Multiply	XF86_ClearGrab
keycode	0x52 =	KP_Subtract	XF86_Prev_VMode		KP_Subtract	XF86_Prev_VMode

keycode	0x17 =	Tab		ISO_Left_Tab		U201C		U201D
keycode	0x18 =	q		Q			ntilde		Ntilde
keycode	0x19 =	w		W			division	multiply
keycode	0x1A =	e		E			aring		Aring
keycode	0x1B =	r		R			ograve		Ograve
keycode	0x1C =	t		T			ocircumflex	Ocircumflex
keycode	0x1D =	y		Y			ugrave		Ugrave
keycode	0x1E =	u		U			otilde		Otilde
keycode	0x1F =	i		I			eacute		Eacute
keycode	0x20 =	o		O			idiaeresis	Idiaeresis
keycode	0x21 =	p		P			eth		ETH
keycode	0x22 =	bracketleft	braceleft		Ucircumflex	ucircumflex
keycode	0x23 =	bracketright	braceright		Yacute		yacute
keycode	0x24 =	Return		Return			U2022		U2013
keycode	0x6B =	KP_Delete	Delete			U3009		U300B
keycode	0x67 =	End		End			U3015		U3011
keycode	0x69 =	Next		Next			U300D		U300F
keycode	0x4F =	KP_Home		KP_7			KP_Home		KP_7
keycode	0x50 =	KP_Up		KP_8			KP_Up		KP_8
keycode	0x51 =	KP_Prior	KP_9			KP_Prior	KP_9
keycode	0x56 =	KP_Add		XF86_Next_VMode		KP_Add		XF86_Next_VMode

keycode	0x42 =	U2026		U20AC			U201E		U2122
keycode	0x26 =	a		A			aacute		Aacute
keycode	0x27 =	s		S			oacute		Oacute
keycode	0x28 =	d		D			adiaeresis	Adiaeresis
keycode	0x29 =	f		F			ae		AE
keycode	0x2A =	g		G			ccedilla	Ccedilla
keycode	0x2B =	h		H			egrave		Egrave
keycode	0x2C =	j		J			ecircumflex	Ecircumflex
keycode	0x2D =	k		K			ediaeresis	Ediaeresis
keycode	0x2E =	l		L			igrave		Igrave
keycode	0x2F =	semicolon	colon			guillemotright	masculine
keycode	0x30 =	apostrophe	quotedbl		section		cent
keycode	0x33 =	backslash	bar			Udiaeresis	udiaeresis
keycode	0x53 =	KP_Left		KP_4			KP_Left		KP_4
keycode	0x54 =	KP_Begin	KP_5			KP_Begin	KP_5
keycode	0x55 =	KP_Right	KP_6			KP_Right	KP_6

keycode	0x32 =	Shift_L		Shift_L			Shift_L		Shift_L
keycode	0x5E =	Multi_key	Multi_key		Multi_key	Multi_key
keycode	0x34 =	z		Z			uacute		Uacute
keycode	0x35 =	x		X			oslash		Oslash
keycode	0x36 =	c		C			atilde		Atilde
keycode	0x37 =	v		V			odiaeresis	Odiaeresis
keycode	0x38 =	b		B			acircumflex	Acircumflex
keycode	0x39 =	n		N			icircumflex	Icircumflex
keycode	0x3A =	m		M			iacute		Iacute
keycode	0x3B =	comma		less			notsign		onequarter
keycode	0x3C =	period		greater			registered	threequarters
keycode	0x3D =	slash		question		macron		questiondown
keycode	0x3E =	Shift_R		Shift_R			Shift_R		Shift_R
keycode	0x62 =	Up		Up			U2191		U21D1
keycode	0x57 =	KP_End		KP_1			KP_End		KP_1
keycode	0x58 =	KP_Down		KP_2			KP_Down		KP_2
keycode	0x59 =	KP_Next		KP_3			KP_Next		KP_3
keycode	0x6C =	KP_Enter	Return			KP_Enter	Return

keycode	0x25 =	Control_L	Control_L		Control_L	Control_L
keycode	0x73 =	Alt_L		Alt_L			Alt_L		Alt_L
keycode	0x40 =	Mode_switch	Mode_switch		Mode_switch	Mode_switch
keycode	0x41 =	space		space			nobreakspace	U3000
keycode	0x71 =	Alt_R		Alt_R			Alt_R		Alt_R
keycode	0x74 =	Meta_R		Meta_R			Meta_R		Meta_R
keycode	0x75 =	Multi_key	Multi_key		Multi_key	Multi_key
keycode	0x6D =	Control_R	Control_R		Control_R	Control_R
keycode	0x64 =	Left		Left			U2190		U21D0
keycode	0x68 =	Down		Down			U2193		U21D3
keycode	0x66 =	Right		Right			U2192		U21D2
keycode	0x5A =	KP_Insert	KP_0			KP_Insert	KP_0
keycode	0x5B =	KP_Delete	KP_Decimal		KP_Delete	KP_Decimal

keycode	0x5D =
keycode	0x65 =
keycode	0x7C =
keycode	0x7D =
keycode	0x7E =
keycode	0x7F =
keycode	0x80 =
keycode	0x9C =

clear	Shift
clear	Lock
clear	Control
clear	Mod1
clear	Mod2
clear	Mod3
clear	Mod4
clear	Mod5
clear	Ctrl

add	Shift	= Shift_L	Shift_R
add	Control	= Control_L	Control_R
add	Mod1	= Alt_L		Alt_R
add	Mod2	= Num_Lock
add	Mod3	= Meta_R
add	Mod4	= Scroll_Lock
add	Mod5	= Mode_switch

Valid XHTML/1.0 Transitional! — CVSweb for MirBSDChangeLog