-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy path.imwheelrc
174 lines (156 loc) · 6 KB
/
.imwheelrc
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# This file is part of eRCaGuy_dotfiles: https://github.com/ElectricRCAircraftGuy/eRCaGuy_dotfiles
# DESCRIPTION:
# imwheel configuration settings to speed up the scroll speed for these applications, as a
# multiplier by the numerical integer value at the end of the first two rows of each block.
# INSTRUCTIONS:
#
# NB: `imwheel` only works fully in the X11 Window manager! In the Wayland window manager, it only
# works in a very small set of programs which use XWayland (whatever that is), such as Chrome! To
# get full functionality, you will need to switch back to the X11 window manager, as I explain
# here: https://askubuntu.com/a/1470563/327339.
#
# 1. Install imwheel:
# sudo apt update
# sudo apt install imwheel
# 2. Read & follow the instructions at the link below. Edit the two numbers at the top-right of each
# configuration block below to set the mouse scroll speed.
# (PREFERRED) Symlink the file into the home dir:
# cd path/to/here
# ln -si "${PWD}/.imwheelrc" ~
# OR, copy this file to ~/.imwheelrc so you can edit it without affecting
# this repo:
# cp -i .imwheelrc ~
# Note: to get an idea for what name to use for each application, as specified at the top of each
# configuration block below, open the application of interest to get its process(es) running, then
# search for its name among all running processes like this:
# ps aux | grep 'application_name'
#
# The above `ps` method may only work **sometimes!**. Even better: look at the .desktop shortcut
# file for a given application, to see what the name of the executable is. Ex:
# `cat /usr/share/applications/microsoft-edge.desktop | grep 'Exec'` will reveal the name of the
# executable for the Microsoft Edge browser! As shown below, you can see that its executable name
# is `microsoft-edge-stable`, located at path `/usr/bin/microsoft-edge-stable`:
#
# $ cat /usr/share/applications/microsoft-edge.desktop | grep 'Exec'
# Exec=/usr/bin/microsoft-edge-stable %U
# Exec=/usr/bin/microsoft-edge-stable
# Exec=/usr/bin/microsoft-edge-stable --inprivate
# Further instructions & help: see:
# 1. ***** my answer here!: https://askubuntu.com/a/991680/327339
# 1. My answer: https://askubuntu.com/a/1470563/327339
# For `google-chrome` Web Browser
"-chrome"
None, Up, Button4, 3
None, Down, Button5, 3
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
# For Microsoft Edge Web Browser
"microsoft-edge"
None, Up, Button4, 3
None, Down, Button5, 3
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
# For Firefox Web Browser
# Follow the instructions described here, editing a value inside the browser
# itself: https://support.mozilla.org/en-US/questions/1019147
#
# Or just control it here too if you want:
"firefox"
None, Up, Button4, 2
None, Down, Button5, 2
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
# For `slack`
"slack"
None, Up, Button4, 4
None, Down, Button5, 4
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
# Discord, a competitor to Slack; popular with the Ardupilot developers &
# community, for instance.
"discord"
None, Up, Button4, 4
None, Down, Button5, 4
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
# For `libreoffice`
"libreoffice"
None, Up, Button4, 3
None, Down, Button5, 3
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
# For Sublime Text
# "*sublime_text*"
"sublime_text"
None, Up, Button4, 3
None, Down, Button5, 3
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
# For VSCode (Microsoft Visual Studio Code)
# - Use also the `"editor.mouseWheelScrollSensitivity": 3,` type setting in your
# `~/.config/Code/User/settings.json` file. It adjusts the mouse scroll wheel
# speed in MS VSCode too!
"code"
None, Up, Button4, 1
None, Down, Button5, 1
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
# For the `gnome-terminal` default shell/terminal that comes with Ubuntu
"gnome-terminal"
None, Up, Button4, 2
None, Down, Button5, 2
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
# For the `terminator` terminal, which is the terminal I use most
"terminator"
None, Up, Button4, 2
None, Down, Button5, 2
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
# NB: for the `micro` CLI-mouse-enabled text editor, don't use imwheel. Instead,
# set the scroll speed inside micro directly with Ctrl + E, then the cmd: `set
# scrollspeed 5`. That adds a `"scrollspeed": 5,` entry to
# `~/.config/micro/settings.json`.
#
# See:
# 1. My answer/notes:
# https://github.com/zyedidia/micro/issues/2134#issuecomment-1404047315
#
# That scroll speed of 5, in conjunction with a terminator scroll speed of 2,
# above, for instance, results in a total scroll speed in `micro` of 5 x 2 = 10.
# For Foxit Reader PDF viewer/editor
"FoxitReader"
None, Up, Button4, 4
None, Down, Button5, 4
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
# Desktop version of the Signal phone texting app
"signal"
None, Up, Button4, 4
None, Down, Button5, 4
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5