-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xbindkeysrc
54 lines (47 loc) · 2.21 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
# -*- shell-script -*-
#
# sudo apt-get install xbindkeys xmacro
# gnome-session-properties # or search dash with Startup applications
# # add command: xbindkeys
# cd ~ && ln -s ~/config/.xbindkeysrc
#
# pkill xbindkeys # remove current binding, that is needed before each xbindkeys
# xbindkeys # start in deamon mode
# xbindkeys -d > ~/.xbindkeysrc # create default configuration file
# xbindkeys_show # to test configuration file
# xbindkeys-config # gui
# xbindkeys -k # too see your key combination
# xbindkeys -v -n # to run in non deamon mode and print log
#
# xmacrorec2 # press esc and than your keys and esc
# xmacroplay :0 < key.txt # to play
#
# To simulate key on Alt+something you need to release Alt first
# You need both with Numlock and without (Mod2)
#
# I tried to bind to Alt+bracketleft, Alt_L + bracketleft, Alt+plus
# but xbindkeys -n does not reports anything (it does not detect that Alt
# combination)
#
# # to check how your input device (mouse, keyboard, reset buttons) works
# xinput list
# # find some Virtual core keyboard => Usb keyboard -> id=9
# xinput test 9
# ctrl+- mapped to shift page up
"echo -e 'KeyStrRelease minus\nKeyStrRelease Control_L\nKeyStrPress Shift_L\nKeyStrPress Next\nKeyStrRelease Next\nKeyStrRelease Shift_L\nKeyStrPress Control_L' | xmacroplay :0"
Control + minus
# ctrl+= mapped to shift page down
"echo -e 'KeyStrRelease equal\nKeyStrRelease Control_L\nKeyStrPress Shift_L\nKeyStrPress Prior\nKeyStrRelease Prior\nKeyStrRelease Shift_L\nKeyStrPress Control_L' | xmacroplay :0 &"
m:0x4 + c:21
# Control + equal
# ctrl+i mapped to shift insert
"echo -e 'KeyStrRelease i\nKeyStrRelease Control_L\nKeyStrPress Shift_L\nKeyStrPress Insert\nKeyStrRelease Insert\nKeyStrRelease Shift_L\nKeyStrPress Control_L' | xmacroplay :0 &"
m:0x4 + c:31
# "echo -e 'KeyStrRelease bracketright\nKeyStrRelease Control_L\nKeyStrPress b\nKeyStrRelease b\nKeyStrPress Control_L' | xmacroplay :0 &"
# Control + mod2 + bracketright
"echo -e 'KeyStrRelease F6\nKeyStrPress t\nKeyStrRelease t' | xmacroplay :0 &"
F6
"xdotool keydown Tab; xdotool keydown j; xdotool keyup j; xdotool keyup Tab; xdotool key Down"
release + tab + j
"echo -e 'KeyStrPress Down\nKeyStrRelease Down' | xmacroplay $DISPLAY"
Mod4 + j