My xbindkeysrc config

 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
#
# Version: 0.1.3
#
# If you edit this, do not forget to uncomment any lines that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# 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 (on my keyboard):
# Control, Shift, Mod1 (Alt), Mod2 (NumLock),
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#
# Another way to specifie a key is to use 'xev' and set the
# keycode with c:nnn or the modifier with m:nnn where nnn is
# the keycode or the state returned by xev
#
# This file is created by xbindkey_config
# The structure is :
# # Remark
# "command"
# m:xxx + c:xxx
# Shift+...
#keystate_numlock = enable
#keystate_scrolllock = enable
#keystate_capslock = enable
#Xkill
"xkill &"
m:0x14 + c:9
Control+Mod2 + Escape
#Take screenshot of whole screen and save it in the home directory
"scrot --quality 100 ~/`date +%Y%m%d%H%M%S`.png"
m:0x10 + c:111
Mod2 + Print
#Take screenshot of current window (with border) and save in in the home directory
"import -quality 100 -frame -window `xprop -root _NET_ACTIVE_WINDOW | sed 's/_NET_ACTIVE_WINDOW(WINDOW): window id # //' | sed 's/^0x0$/root/'` ~/`date +%Y%m%d%H%M%S`.png"
m:0x18 + c:111
Alt+Mod2 + Print
#Take screenshot of current window (without border) and save it in the home directory
"import -quality 100 -window `xprop -root _NET_ACTIVE_WINDOW | sed 's/_NET_ACTIVE_WINDOW(WINDOW): window id # //' | sed 's/^0x0$/root/'` ~/`date +%Y%m%d%H%M%S`.png"
Alt+Control+Mod2 + Print
#
# End of xbindkeys configuration