Skip to content

Commit 2b416a8

Browse files
committed
Keysym defs for special function keys on modern keyboards
1 parent 0c4e7e4 commit 2b416a8

3 files changed

Lines changed: 193 additions & 0 deletions

File tree

NEWS

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ also need RENDER or glX or some similar method of creating fancy
1515
graphics.
1616

1717

18+
** XF86 special function keysyms
19+
20+
Keysym definitions for special function keys found on modern
21+
keyboards, e.g. raise and lower volume, start specific applications,
22+
etc. Have a look in Xlib/keysymdef/xf86.py to see what there are and
23+
experiment with xev to see what your keyboard generates. These
24+
definitions aren't brought in by default, so you must do this after
25+
importing Xlib.XK:
26+
27+
Xlib.XK.load_keysym_group('xf86')
28+
29+
30+
1831
* Version 0.14 1 Oct 2007 (trialed as 0.14rc1 on 10 Jun 2007)
1932

2033
A couple of new extensions, a Python 2.5 fix and a couple of aliases

Xlib/keysymdef/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
'special',
3434
'technical',
3535
'thai',
36+
'xf86',
3637
'xk3270',
3738
'xkb',
3839
]

Xlib/keysymdef/xf86.py

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
XK_XF86_MonBrightnessUp = 0x1008FF02
2+
XK_XF86_MonBrightnessDown = 0x1008FF03
3+
XK_XF86_KbdLightOnOff = 0x1008FF04
4+
XK_XF86_KbdBrightnessUp = 0x1008FF05
5+
XK_XF86_KbdBrightnessDown = 0x1008FF06
6+
7+
XK_XF86_Standby = 0x1008FF10
8+
XK_XF86_AudioLowerVolume = 0x1008FF11
9+
XK_XF86_AudioMute = 0x1008FF12
10+
XK_XF86_AudioRaiseVolume = 0x1008FF13
11+
XK_XF86_AudioPlay = 0x1008FF14
12+
XK_XF86_AudioStop = 0x1008FF15
13+
XK_XF86_AudioPrev = 0x1008FF16
14+
XK_XF86_AudioNext = 0x1008FF17
15+
XK_XF86_HomePage = 0x1008FF18
16+
XK_XF86_Mail = 0x1008FF19
17+
XK_XF86_Start = 0x1008FF1A
18+
XK_XF86_Search = 0x1008FF1B
19+
XK_XF86_AudioRecord = 0x1008FF1C
20+
21+
XK_XF86_Calculator = 0x1008FF1D
22+
XK_XF86_Memo = 0x1008FF1E
23+
XK_XF86_ToDoList = 0x1008FF1F
24+
XK_XF86_Calendar = 0x1008FF20
25+
XK_XF86_PowerDown = 0x1008FF21
26+
XK_XF86_ContrastAdjust = 0x1008FF22
27+
XK_XF86_RockerUp = 0x1008FF23
28+
XK_XF86_RockerDown = 0x1008FF24
29+
XK_XF86_RockerEnter = 0x1008FF25
30+
31+
XK_XF86_Back = 0x1008FF26
32+
XK_XF86_Forward = 0x1008FF27
33+
XK_XF86_Stop = 0x1008FF28
34+
XK_XF86_Refresh = 0x1008FF29
35+
XK_XF86_PowerOff = 0x1008FF2A
36+
XK_XF86_WakeUp = 0x1008FF2B
37+
XK_XF86_Eject = 0x1008FF2C
38+
XK_XF86_ScreenSaver = 0x1008FF2D
39+
XK_XF86_WWW = 0x1008FF2E
40+
XK_XF86_Sleep = 0x1008FF2F
41+
XK_XF86_Favorites = 0x1008FF30
42+
XK_XF86_AudioPause = 0x1008FF31
43+
XK_XF86_AudioMedia = 0x1008FF32
44+
XK_XF86_MyComputer = 0x1008FF33
45+
XK_XF86_VendorHome = 0x1008FF34
46+
XK_XF86_LightBulb = 0x1008FF35
47+
XK_XF86_Shop = 0x1008FF36
48+
XK_XF86_History = 0x1008FF37
49+
XK_XF86_OpenURL = 0x1008FF38
50+
XK_XF86_AddFavorite = 0x1008FF39
51+
XK_XF86_HotLinks = 0x1008FF3A
52+
XK_XF86_BrightnessAdjust = 0x1008FF3B
53+
XK_XF86_Finance = 0x1008FF3C
54+
XK_XF86_Community = 0x1008FF3D
55+
XK_XF86_AudioRewind = 0x1008FF3E
56+
XK_XF86_XF86BackForward = 0x1008FF3F
57+
XK_XF86_Launch0 = 0x1008FF40
58+
XK_XF86_Launch1 = 0x1008FF41
59+
XK_XF86_Launch2 = 0x1008FF42
60+
XK_XF86_Launch3 = 0x1008FF43
61+
XK_XF86_Launch4 = 0x1008FF44
62+
XK_XF86_Launch5 = 0x1008FF45
63+
XK_XF86_Launch6 = 0x1008FF46
64+
XK_XF86_Launch7 = 0x1008FF47
65+
XK_XF86_Launch8 = 0x1008FF48
66+
XK_XF86_Launch9 = 0x1008FF49
67+
XK_XF86_LaunchA = 0x1008FF4A
68+
XK_XF86_LaunchB = 0x1008FF4B
69+
XK_XF86_LaunchC = 0x1008FF4C
70+
XK_XF86_LaunchD = 0x1008FF4D
71+
XK_XF86_LaunchE = 0x1008FF4E
72+
XK_XF86_LaunchF = 0x1008FF4F
73+
74+
XK_XF86_ApplicationLeft = 0x1008FF50
75+
XK_XF86_ApplicationRight = 0x1008FF51
76+
XK_XF86_Book = 0x1008FF52
77+
XK_XF86_CD = 0x1008FF53
78+
XK_XF86_Calculater = 0x1008FF54
79+
XK_XF86_Clear = 0x1008FF55
80+
XK_XF86_Close = 0x1008FF56
81+
XK_XF86_Copy = 0x1008FF57
82+
XK_XF86_Cut = 0x1008FF58
83+
XK_XF86_Display = 0x1008FF59
84+
XK_XF86_DOS = 0x1008FF5A
85+
XK_XF86_Documents = 0x1008FF5B
86+
XK_XF86_Excel = 0x1008FF5C
87+
XK_XF86_Explorer = 0x1008FF5D
88+
XK_XF86_Game = 0x1008FF5E
89+
XK_XF86_Go = 0x1008FF5F
90+
XK_XF86_iTouch = 0x1008FF60
91+
XK_XF86_LogOff = 0x1008FF61
92+
XK_XF86_Market = 0x1008FF62
93+
XK_XF86_Meeting = 0x1008FF63
94+
XK_XF86_MenuKB = 0x1008FF65
95+
XK_XF86_MenuPB = 0x1008FF66
96+
XK_XF86_MySites = 0x1008FF67
97+
XK_XF86_New = 0x1008FF68
98+
XK_XF86_News = 0x1008FF69
99+
XK_XF86_OfficeHome = 0x1008FF6A
100+
XK_XF86_Open = 0x1008FF6B
101+
XK_XF86_Option = 0x1008FF6C
102+
XK_XF86_Paste = 0x1008FF6D
103+
XK_XF86_Phone = 0x1008FF6E
104+
XK_XF86_Q = 0x1008FF70
105+
XK_XF86_Reply = 0x1008FF72
106+
XK_XF86_Reload = 0x1008FF73
107+
XK_XF86_RotateWindows = 0x1008FF74
108+
XK_XF86_RotationPB = 0x1008FF75
109+
XK_XF86_RotationKB = 0x1008FF76
110+
XK_XF86_Save = 0x1008FF77
111+
XK_XF86_ScrollUp = 0x1008FF78
112+
XK_XF86_ScrollDown = 0x1008FF79
113+
XK_XF86_ScrollClick = 0x1008FF7A
114+
XK_XF86_Send = 0x1008FF7B
115+
XK_XF86_Spell = 0x1008FF7C
116+
XK_XF86_SplitScreen = 0x1008FF7D
117+
XK_XF86_Support = 0x1008FF7E
118+
XK_XF86_TaskPane = 0x1008FF7F
119+
XK_XF86_Terminal = 0x1008FF80
120+
XK_XF86_Tools = 0x1008FF81
121+
XK_XF86_Travel = 0x1008FF82
122+
XK_XF86_UserPB = 0x1008FF84
123+
XK_XF86_User1KB = 0x1008FF85
124+
XK_XF86_User2KB = 0x1008FF86
125+
XK_XF86_Video = 0x1008FF87
126+
XK_XF86_WheelButton = 0x1008FF88
127+
XK_XF86_Word = 0x1008FF89
128+
XK_XF86_Xfer = 0x1008FF8A
129+
XK_XF86_ZoomIn = 0x1008FF8B
130+
XK_XF86_ZoomOut = 0x1008FF8C
131+
132+
XK_XF86_Away = 0x1008FF8D
133+
XK_XF86_Messenger = 0x1008FF8E
134+
XK_XF86_WebCam = 0x1008FF8F
135+
XK_XF86_MailForward = 0x1008FF90
136+
XK_XF86_Pictures = 0x1008FF91
137+
XK_XF86_Music = 0x1008FF92
138+
139+
XK_XF86_Battery = 0x1008FF93
140+
XK_XF86_Bluetooth = 0x1008FF94
141+
XK_XF86_WLAN = 0x1008FF95
142+
XK_XF86_UWB = 0x1008FF96
143+
144+
XK_XF86_AudioForward = 0x1008FF97
145+
XK_XF86_AudioRepeat = 0x1008FF98
146+
XK_XF86_AudioRandomPlay = 0x1008FF99
147+
XK_XF86_Subtitle = 0x1008FF9A
148+
XK_XF86_AudioCycleTrack = 0x1008FF9B
149+
XK_XF86_CycleAngle = 0x1008FF9C
150+
XK_XF86_FrameBack = 0x1008FF9D
151+
XK_XF86_FrameForward = 0x1008FF9E
152+
XK_XF86_Time = 0x1008FF9F
153+
XK_XF86_Select = 0x1008FFA0
154+
XK_XF86_View = 0x1008FFA1
155+
XK_XF86_TopMenu = 0x1008FFA2
156+
157+
XK_XF86_Red = 0x1008FFA3
158+
XK_XF86_Green = 0x1008FFA4
159+
XK_XF86_Yellow = 0x1008FFA5
160+
XK_XF86_Blue = 0x1008FFA6
161+
162+
XK_XF86_Switch_VT_1 = 0x1008FE01
163+
XK_XF86_Switch_VT_2 = 0x1008FE02
164+
XK_XF86_Switch_VT_3 = 0x1008FE03
165+
XK_XF86_Switch_VT_4 = 0x1008FE04
166+
XK_XF86_Switch_VT_5 = 0x1008FE05
167+
XK_XF86_Switch_VT_6 = 0x1008FE06
168+
XK_XF86_Switch_VT_7 = 0x1008FE07
169+
XK_XF86_Switch_VT_8 = 0x1008FE08
170+
XK_XF86_Switch_VT_9 = 0x1008FE09
171+
XK_XF86_Switch_VT_10 = 0x1008FE0A
172+
XK_XF86_Switch_VT_11 = 0x1008FE0B
173+
XK_XF86_Switch_VT_12 = 0x1008FE0C
174+
175+
XK_XF86_Ungrab = 0x1008FE20
176+
XK_XF86_ClearGrab = 0x1008FE21
177+
XK_XF86_Next_VMode = 0x1008FE22
178+
XK_XF86_Prev_VMode = 0x1008FE23
179+

0 commit comments

Comments
 (0)