-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xbindkeysrc
96 lines (83 loc) · 2.53 KB
/
.xbindkeysrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
###########################
# xbindkeys configuration #
###########################
#
# Version: 0.1.3
#
# If you edit this, do not forget to uncomment any lines that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# A list of keys is in /usr/include/X11/keysym.h and in
# /usr/include/X11/keysymdef.h
# The XK_ is not needed.
#
# List of modifier (on my keyboard):
# Control, Shift, Mod1 (Alt), Mod2 (NumLock),
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#
# Another way to specifie a key is to use 'xev' and set the
# keycode with c:nnn or the modifier with m:nnn where nnn is
# the keycode or the state returned by xev
#
# "command"
# m:xxx + c:xxx
#
#
# Used to make this config was the command 'xbindkeys -k'
# After that xvkbd works like this: http://xahlee.info/linux/linux_xvkbd_tutorial.html
# Then characters are on: http://xahlee.info/linux/linux_show_keycode_keysym.html
# And used was the command 'xev'
# With these tools all of this can be recreated.
#
# xdotools where replaced by xvkbd a recent update becaluse it fixes the keys sometimes stuck issue.
# This post gave me the idea to try it with xvkbd instead:
# https://askubuntu.com/questions/417748/ctrl-alt-key-doesnt-work-on-non-us-f-x-german-danish-keyboard-layout
# "@" Symbol with Control+Alt+q
"xvkbd -xsendevent -text '@'"
m:0xc + c:24
Control+Alt + q
# "€" Symbol with Control+Alt+e
"xvkbd -xsendevent -text '\[EuroSign]'"
m:0xc + c:26
Control+Alt + e
# "µ" Symbol with Control+Alt+m
"xvkbd -xsendevent -text '\[mu]'"
m:0xc + c:58
Control+Alt + m
# "{" Symbol with Control+Alt+7
"xvkbd -xsendevent -text '{'"
m:0xc + c:16
Control+Alt + 7
# "[" Symbol with Control+Alt+8
"xvkbd -xsendevent -text '['"
m:0xc + c:17
Control+Alt + 8
# "]" Symbol with Control+Alt+9
"xvkbd -xsendevent -text ']'"
m:0xc + c:18
Control+Alt + 9
# "}" Symbol with Control+Alt+0
"xvkbd -xsendevent -text '}'"
m:0xc + c:19
Control+Alt + 0
# "²" Symbol with Control+Alt+2
"xvkbd -xsendevent -text '\[twosuperior]'"
m:0xc + c:10
Control+Alt + 2
# "³" Symbol with Control+Alt+3
"xvkbd -xsendevent -text '\[threesuperior]'"
m:0xc + c:11
Control+Alt + 3
# "~" Symbol with Control+Alt++
"xvkbd -xsendevent -text '\[asciitilde]'"
m:0xc + c:35
Control+Alt + plus
# "\" Symbol with Control+Alt+ß
"xvkbd -xsendevent -text '\[backslash]'"
m:0xc + c:20
Control+Alt + ssharp
# "|" Symbol with Control+Alt+<
"xvkbd -xsendevent -text '\[bar]'"
m:0xc + c:94
Control+Alt + less
# End of xbindkeys configuration