-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xbindkeysrc
146 lines (114 loc) · 3.07 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
# how to grab these keycodes to bind against
#
# xbindkeys --key
# xbindkeys --multikey
# Toggle touchpad on/off
"~/bin/trackpad-toggle.sh"
m:0x4 + c:66
Control + Escape
# Min Screen Brightness
"sudo light -S 1"
m:0x1 + c:232
Shift + XF86MonBrightnessDown
# Max Screen Brightness
"sudo light -S 100"
m:0x1 + c:233
Shift + XF86MonBrightnessUp
# Screen Brightness -
"sudo light -U 5"
c:232
XF86MonBrightnessDown
# Screen Brightness +
"sudo light -A 5"
m:0x0 + c:233
XF86MonBrightnessUp
# Volume Toggle Mute
"sh ~/bin/volume-mute-toggle.sh"
m:0x4 + c:76
Control + F10
# Volume Toggle Mute
"sh ~/bin/volume-mute-toggle.sh"
m:0x0 + c:121
XF86AudioMute
# Volume Down
"sh ~/bin/volume-down.sh"
m:0x4 + c:95
Control + F11
# Volume Down
"sh ~/bin/volume-down.sh"
m:0x0 + c:122
XF86AudioLowerVolume
# Volume Up
"sh ~/bin/volume-up.sh"
m:0x4 + c:96
Control + F12
# Volume Up
"sh ~/bin/volume-up.sh"
m:0x0 + c:123
XF86AudioRaseVolume
"shutdown -f now"
m:0x4 + c:124
Control + XF86PowerOff
# screenshot capture - mac mission control button
"sh ~/bin/screenshot"
m:0x0 + c:212
XF86LaunchB
# non-mac printscreen button
"sh ~/bin/screenshot"
m:0x0 + c:107
Print
"~/bin/ocr-screenshot"
m:0x4 + c:107
Control + Print
"/home/rramirez/bin/Lock"
m:0x45 + c:37
Control+Shift+Mod4 + Control_L
"~/bin/rescreen"
m:0x8 + c:128
Alt + XF86LaunchA
#################################
# insert datestamp + day
# e.g. 2021-08-12 Thursday
##################################
# won't work since I'm using fish and defaulted my modifier key in i3 to windows key (mod4)
# "sleep 0.2; xdotool type --clearmodifiers $(date +%Y-%m-%d); xdotool key 0xff80; xdotool type --clearmodifiers $(date +%A)"
# m:0x40 + c:33
# Mod4 + p
# FIXME: I tried using this on NixOS and it breaks the keyboard
# "sleep 0.2; xdotool type --clearmodifiers $(date +%Y-%m-%d); xdotool key 0xff80; xdotool type --clearmodifiers $(date +%A)"
# m:0x4 + c:75
# Control + F9
# # anne pro 2 60% keyboard
# "sleep 0.2; xdotool type --clearmodifiers $(date +%Y-%m-%d); xdotool key 0xff80; xdotool type --clearmodifiers $(date +%A)"
# m:0x4 + c:69
# Control + F3
# # keychon k8 TKL keyboard
# "sleep 0.2; xdotool type --clearmodifiers $(date +%Y-%m-%d); xdotool key 0xff80; xdotool type --clearmodifiers $(date +%A)"
# m:0x0 + c:128
# XF86LaunchA
# configure display, keyboard, trackpad, and audio
"~/bin/re"
m:0x44 + c:33
Control+Mod4 + p
# toggle focus mode (notifications)
"~/bin/toggle-notifications.sh"
m:0x0 + c:224
XF86Messenger
# lock screen
"~/bin/lock"
m:0xd + c:46
Control+Shift+Alt + l
# the lock here says alt, but I think I remapped alt and windows keys elsewhere
# https://github.com/ruebenramirez/.dotfiles/blob/master/bin/rekey#L21
# play forward next track
"~/bin/play-next.sh"
m:0x0 + c:171
XF86AudioNext
# play back previous track
"~/bin/play-previous.sh"
m:0x0 + c:173
XF86AudioPrev
# play/pause track
"~/bin/play-pause.sh"
m:0x0 + c:172
XF86AudioPlay