-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xbindkeysrc
319 lines (277 loc) · 7.11 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
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
#
# ~/.xbindkeysrc
#
#xinit loads this
#reload:
#killall -s1 xbindkeys
#start xbindkeys daemon
#xbindkeys -f ~/.xbindkeysrc
#find a keycode:
#xbindkeys -k
# List of modifiers:
# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#start 'xev' and press to get key code and name
#xf86 keys
"uxterm -e /usr/bin/vifm"
XF86Explorer
"google-chrome-stable"
XF86HomePage
"amixer set Master toggle"
XF86Tools
#keycode 160 = XF86AudioMute
#keycode 174 = XF86AudioLowerVolume
#keycode 176 = XF86AudioRaiseVolume
#keycode 162 = XF86AudioPlay
#keycode 144 = XF86AudioPrev
#keycode 145 = XF86AudioNext
#keycode 164 = XF86AudioStop
#keycode 237 = XF86HomePage
#backlight
#increase
# ( b:5 mouse scroll up; b:4 down )
"xdotool key XF86MonBrightnessUp"
alt + Mod2+Mod4 + b:4
#"sleep 0.15s && xdotool key XF86MonBrightnessUp"
"sudo brightnessctl set 4%+"
alt + Mod2+Mod4 + Up
#decrease
"xdotool key XF86MonBrightnessDown"
alt + Mod2+Mod4 + b:5
#"sleep 0.15s && xdotool key XF86MonBrightnessDown"
"sudo brightnessctl set 4%-"
alt + Mod2+Mod4 + Down
#fine tuning
#increase
"sudo brightnessctl set 3+"
alt + Mod2+Mod4 + equal
#decrease
"sudo brightnessctl set 3-"
alt + Mod2+Mod4 + minus
#set to level 1
"sudo brightnessctl set 1"
alt + Mod2+mod4 + 0
#bc window
#"uxterm -geometry 34x18"
# Mod2+Mod4 + c
#"uxterm -geometry 34x18"
# XF86Calculator
#calculator
#"speedcrunch"
# alt + Mod2+Mod4 + c
#firefox
#run with pvkrun only if that pkg is present
"$HOME/bin/firefox.sh"
Mod2+Mod4 + f
#chrome
"google-chrome-stable"
Mod2+Mod4 + g
#gmaps
"$HOME/bin/mapsandresize.sh"
Mod2+Mod4 + m
#screen lock
#"xflock4"
# control + alt + del
#xflock4 is the reference Bash script which is used to lock an Xfce
#session. It tries consecutively four screen lockers or exits with
#return code 1 if it fails to find any. Therefore, for xflock4 to
#succeed, either xscreensaver, gnome-screensaver, slocki, xlockmore
#or light-locker needs to be installed.
#screenshot
#select region
"xfce4-screenshooter -r -s $HOME/Downloads"
Mod2+Mod4 + s
#more options
"xfce4-screenshooter -s $HOME/Downloads"
alt + Mod2+Mod4 + s
#vifm
#"uxterm -e /usr/bin/vifm"
# Mod2+Mod4 + a
#thunar
"thunar"
alt + Mod2+Mod4 + a
#vim
"uxterm -e /usr/bin/vim"
Mod2+Mod4 + e
#mousepad
"mousepad"
alt + Mod2+Mod4 + e
#notas
"mousepad $HOME/arq/_Notas_sobre_GNU+Linux"
Mod2+Mod4 + j
#raise vol ('b:4' is mouse scroll up)
"amixer sset -q 'Master' 2%+"
Mod2+Mod4 + b:4
"amixer sset -q 'Master' 2%+"
Mod2+Mod4 + Up
#volume Decrease ('b:5' is mouse scroll down)
"amixer sset -q 'Master' 2%-"
Mod2+Mod4 + b:5
"amixer sset -q 'Master' 2%-"
Mod2+Mod4 + Down
#wisker menu popup
"xfce4-popup-whiskermenu"
Mod2+Mod4 + space
"xfce4-popup-whiskermenu"
XF86Search
#xkill
"xkill"
Mod2+Mod4 + k
#rofimoji
#"rofimoji"
# Mod2+Mod4 + r
#location of pointer on keypress
#must enable settings>acessibility>mouse in xfce4
#"xfce4-find-cursor"
# Control + space
#xterm
"/usr/bin/uxterm"
Mod2+Mod4 + z
#xfce4-term
"/usr/bin/xfce4-terminal"
Mod2+Mod4 + x
#window sizes
#normal windows
#titebar does not count for Y values
"xdotool getactivewindow windowsize 375 340" # Youtube Small
Mod2+Mod4 + 1
"xdotool getactivewindow windowsize 550 440" # Youtube Medium
Mod2+Mod4 + 2
"xdotool getactivewindow windowsize 710 560"
Mod2+Mod4 + 3
"xdotool getactivewindow windowsize 950 660"
Mod2+Mod4 + 4
"xdotool getactivewindow windowsize 570 660"
Mod2+Mod4 + 5
#xrerm windows
#"xdotool getactivewindow windowsize --usehints 86 24"
# Mod2+Mod4 + 6
#"xdotool getactivewindow windowsize --usehints 86 48"
# Mod2+Mod4 + 7
#"xdotool getactivewindow windowsize --usehints 144 48"
# Mod2+Mod4 + 8
#"xdotool getactivewindow windowsize --usehints 9 39"
#price streams
#"$HOME/bin/markets/pricesroll.sh"
# Mod2+Mod4 + p
#price streams
#"$HOME/bin/markets/pricesroll2.sh"
# Shift + Mod2+Mod4 + p
#xfce-like zoom
"xdotool keydown Super click 4 keyup Super"
Mod2+Mod4 + u
"xdotool keydown Super click 5 keyup Super"
Mod2+Mod4 + y
#xdotool keydown Alt click 4 keyup Alt
#"$HOME/bin/zoomDown.sh"
"xzoom"
alt + Mod2+Mod4 + b:1
#html filter from clipboard
#"uxterm -e 'xclip -o -sel clip | w3m -dump -T text/html | less'"
# Mod2+Mod4 + h
#mouse razer deathadder v2 mini
"xte 'keydown Super_L' ;notify-send -u low -t 400 'SUPER on'"
b:9
"xte 'keyup Super_L' ;notify-send -u low -t 200 'SUPER off'"
Mod2+Mod4 + b:9
#
#"xte 'keydown Super_L' ;sleep 2 ;xte 'keyup Super_L'"
# b:9 + release
#
#How do I PROPERLY map a keyboard key to a mouse button?
#https://superuser.com/questions/883782/how-do-i-properly-map-a-keyboard-key-to-a-mouse-button
#https://unix.stackexchange.com/questions/189116/reprogram-mouse-buttons
#Simulate Double Click
#"if ls ~/.xbk_double_caps; then [YOUR COMMAND]; else touch ~/.xbk_double_caps; sleep .5; rm ~/.xbindkeys_doubleclick; fi"
# Caps_Lock
#https://askubuntu.com/questions/471622/map-double-click-to-key-combination
#swap b:8 (back) by refresh
"xdotool key XF86Refresh"
b:8
#https://wiki.linuxquestions.org/wiki/XF86_keyboard_symbols
#x11 keymaps
#http://xahlee.info/linux/linux_show_keycode_keysym.html
#identifying keycodes
# To find the keycodes for a particular key, enter the following command:
#
# $ xbindkeys --key
#
# or the following to grab multiple keys:
#
# $ xbindkeys --multikey
#
# To show all loaded key bindings:
#
# $ xbindkeys --show
#
#https://wiki.archlinux.org/index.php/Xbindkeys
# Example config
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.6
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# To specify a key, you can use 'xbindkeys --key' or
# 'xbindkeys --multikey' and put one of the two lines in this file.
#
# The format of a command line is:
# "command to start"
# associated key
#
#
# 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:
# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#
## The release modifier is not a standard X modifier, but you can
# use it if you want to catch release events instead of press events
#
#By defaults, xbindkeys does not pay attention with the modifiers
# NumLock, CapsLock and ScrollLock.
# Uncomment the lines above if you want to pay attention to them.
#
#keystate_numlock = enable
#keystate_capslock = enable
#keystate_scrolllock= enable
#
# Examples of commands:
#
#"xbindkeys_show"
# control+shift + q
#
# set directly keycode (here control + f with my keyboard)
#"xterm"
# c:41 + m:0x4
#
# specify a mouse button
#"xterm"
# control + b:2
#
#"xterm -geom 50x20+20+20"
# Shift+Mod2+alt + s
#
## set directly keycode (here control+alt+mod2 + f with my keyboard)
#"xterm"
# alt + c:0x29 + m:4 + mod2
#
## Control+Shift+a release event starts rxvt
#"rxvt"
# release+control+shift + a
#
## Control + mouse button 2 release event starts rxvt
#"rxvt"
# Control + b:2 + Release
#
##################################
# End of xbindkeys configuration #
##################################