###########################
# xbindkeys configuration #
###########################

# @x11  W-Escape    [es7s] Show/hide terminator instance
"$HOME/bin/es7s/terminator-singleton"
  Mod4 + Escape

# @x11  M-`         [es7s] Show/hide terminator instance
"$HOME/bin/es7s/terminator-singleton"
  Alt + c:49

# @x11  W-/         [xbindkeys] Show xbindkeys bindings
"xbindkeys_show"
  Mod4 + slash

# @x11  W-s         [es7s] Switch workspaces
"${ES7S_BIN_PATH}/switch-wspace-turbo"
  Mod4 + s

# @x11  W-x         [xbindkeys] Launch xterm instance
"xterm"
  Mod4 + x

# @x11  W-PtScr     [es7s] Make a screenshot after 3s delay
"dss"
  m:0x50 + c:107

#-------------------------------
# [xdotool]

# @x11  W-LBtn      [xdotool] Copy image from Chrome, send to Telegram
"${ES7S_BIN_PATH}/es7s exec xdotool chrome-img-to-tg"
  m:0x50 + b:1

# @x11  MB9         [xdotool] Copy image from Chrome, send to Telegram
"${ES7S_BIN_PATH}/es7s exec xdotool chrome-img-to-tg"
  b:9

# @x11  W-S-LBtn    [xdotool] Copy image from Chrome, send to Telegram, close tab
"${ES7S_BIN_PATH}/es7s exec xdotool chrome-img-to-tg chrome-key-right"
  m:0x50 + shift + b:1

# @x11  W-e         [xdotool] Copy image from Chrome, send to Telegram, goto next page
"${ES7S_BIN_PATH}/es7s exec xdotool chrome-img-to-tg chrome-close-tab"
  Mod4 + e

# @x11  W-g         [xdotool] Run gimp macros
"${ES7S_BIN_PATH}/es7s exec xdotool gimp-macros"
  Alt + t

# @x11  M-e         [xdotool] Paste ESC (0x1b) character
"$HOME/.es7s/bin/sendkey ESC"
  Alt + e

# @x11  M-t         [xdotool] Paste TAB (0x08) character
"$HOME/.es7s/bin/sendkey TAB"
  Alt + t

#-------------------------------
# works::
#  alt + b:1
#  alt+shift + b:1
#-------------------------------
# to reload xbindkeys:
#   'pkill -HUP xbindkeys'
#-------------------------------
# to capture key presses:
#   'xev' or 'xbindkeys -mk'
#-------------------------------
# b:1   LEFT BUTTON
# b:2   MIDDLE BUTTON
# b:3   RIGHT BUTTON
# b:4   SCROLL UP
# b:5   SCROLL DOWN
# b:6   SWIPE RIGHT
# b:7   SWIPE LEFT
# b:8 ? HISTORY BACKWARD
# b:9   HISTORY FORWARD
#-------------------------------


#
# 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:

#"xterm -geom 50x20+20+20"
#
## 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 #
##################################
