minor improvements
[distro-setup] / .xbindkeysrc.scm
1
2 ;; left scroll = left/right, including alt/meta modifiers
3 (xbindkey '(b:11) "echo KeyStrPress Left KeyStrRelease Left | xmacroplay -d 1 :0")
4 (xbindkey '(b:10) "echo KeyStrPress Right KeyStrRelease Right | xmacroplay -d 1 :0")
5 (xbindkey '(control b:11) "echo KeyStrPress Left KeyStrRelease Left | xmacroplay -d 1 :0")
6 (xbindkey '(control b:10) "echo KeyStrPress Right KeyStrRelease Right | xmacroplay -d 1 :0")
7 (xbindkey '(control alt b:11) "echo KeyStrPress Left KeyStrRelease Left | xmacroplay -d 1 :0")
8 (xbindkey '(control alt b:10) "echo KeyStrPress Right KeyStrRelease Right | xmacroplay -d 1 :0")
9 (xbindkey '(alt b:11) "echo KeyStrPress Left KeyStrRelease Left | xmacroplay -d 1 :0")
10 (xbindkey '(alt b:10) "echo KeyStrPress Right KeyStrRelease Right | xmacroplay -d 1 :0")
11
12
13 ;; i chose delay of 1 without really testing, and delay of 2 because
14 ;; that is what worked with xdotool
15
16 ;; right mouse = up / down
17 (xbindkey '(b:13) "echo KeyStrPress Up KeyStrRelease Up | xmacroplay -d 1 :0")
18 (xbindkey '(b:14) "echo KeyStrPress Down KeyStrRelease Down | xmacroplay -d 1 :0")
19 ;; ctrl+alt = scroll
20 (xbindkey '(control alt b:13) "echo KeyStrRelease Control_R KeyStrRelease Alt_L ButtonPress 4 ButtonRelease 4 KeyStrPress Control_R KeyStrPress Alt_L | xmacroplay -d 2 :0")
21 (xbindkey '(control alt b:14) "echo KeyStrRelease Control_R KeyStrRelease Alt_L ButtonPress 5 ButtonRelease 5 KeyStrPress Control_R KeyStrPress Alt_L | xmacroplay -d 2 :0")
22 ;; ctrl = ctrl + up/down
23 (xbindkey '(control b:13) "echo KeyStrPress Up KeyStrRelease Up | xmacroplay -d 1 :0")
24 (xbindkey '(control b:14) "echo KeyStrPress Down KeyStrRelease Down | xmacroplay -d 1 :0")
25 ;; alt = alt+scroll
26 (xbindkey '(alt b:13) "echo ButtonPress 4 ButtonRelease 4 | xmacroplay -d 1 :0")
27 (xbindkey '(alt b:14) "echo ButtonPress 5 ButtonRelease 5 | xmacroplay -d 1 :0")
28
29
30
31
32 ;; disabled because xdotool is laggy on debian. worked on fedora. just using xmacro instead for now.
33 ;; ;; right mouse = up / down
34 ;; (xbindkey '(b:13) "xdotool key --delay 2 Up")
35 ;; (xbindkey '(b:14) "xdotool key --delay 2 Down")
36 ;; ;; ctrl+alt = scroll
37 ;; (xbindkey '(control alt b:13) "xdotool click --clearmodifiers --delay 1 4")
38 ;; (xbindkey '(control alt b:14) "xdotool click --clearmodifiers --delay 1 5")
39 ;; ;; ctrl = ctrl+scroll
40 ;; (xbindkey '(control b:13) "xdotool click --delay 2 4")
41 ;; (xbindkey '(control b:14) "xdotool click --delay 2 5")
42 ;; ;; alt = alt+scroll
43 ;; (xbindkey '(alt b:13) "xdotool click --delay 2 4")
44 ;; (xbindkey '(alt b:14) "xdotool click --delay 2 5")
45
46
47 ;; ;; left scroll = left/right, including alt/meta modifiers
48 ;; (xbindkey '(b:11) "xdotool key --delay 2 Left")
49 ;; (xbindkey '(b:10) "xdotool key --delay 2 Right")
50 ;; (xbindkey '(control b:11) "xdotool key --delay 2 Left")
51 ;; (xbindkey '(control b:10) "xdotool key --delay 2 Right")
52 ;; (xbindkey '(control alt b:11) "xdotool key --delay 2 Left")
53 ;; (xbindkey '(control alt b:10) "xdotool key --delay 2 Right")
54 ;; (xbindkey '(alt b:11) "xdotool key --delay 2 Left")
55 ;; (xbindkey '(alt b:10) "xdotool key --delay 2 Right")
56
57 ;; default delay is 12, i change to 5 or else some faster scrolls do not register
58
59
60 ;;started to define these, then figured there were so many of them,
61 ;;and the only point was so that some default scroll keybind would work,
62 ;;but I don't actually know of any, so disabled this
63 ;; (xbindkey '(shift b:13) "xdotool click --delay 2 4")
64 ;; (xbindkey '(shift b:14) "xdotool click --delay 2 5")
65 ;; (xbindkey '(Mod4 b:13) "xdotool click --delay 2 4")
66 ;; (xbindkey '(Mod4 b:14) "xdotool click --delay 2 5")
67 ;; (xbindkey '(alt shift b:13) "xdotool click --delay 2 4")
68 ;; (xbindkey '(alt shift b:14) "xdotool click --delay 2 5")
69 ;; (xbindkey '(control shift b:13) "xdotool click --delay 2 4")
70 ;; (xbindkey '(control shift b:14) "xdotool click --delay 2 5")
71 ;; (xbindkey '(Mod4 shift b:13) "xdotool click --delay 2 4")
72 ;; (xbindkey '(Mod4 shift b:14) "xdotool click --delay 2 5")
73 ;; (xbindkey '(alt Mod4 b:13) "xdotool click --delay 2 4")
74 ;; (xbindkey '(alt Mod4 b:14) "xdotool click --delay 2 5")
75 ;; (xbindkey '(control Mod4 b:13) "xdotool click --delay 2 4")
76 ;; (xbindkey '(control Mod4 b:14) "xdotool click --delay 2 5")
77 ;; (xbindkey '(control alt shift b:13) "xdotool click --delay 2 4")
78 ;; (xbindkey '(control alt shift b:14) "xdotool click --delay 2 5")
79 ;; (xbindkey '(alt shift b:13) "xdotool click --delay 2 4")
80 ;; (xbindkey '(alt shift b:14) "xdotool click --delay 2 5")