User Tools

Site Tools


ubuntu:mouse:mouse_shortcuts_with_xbindkeys:create_a_default_configuration_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:mouse:mouse_shortcuts_with_xbindkeys:create_a_default_configuration_file [2021/10/25 11:39] – created peterubuntu:mouse:mouse_shortcuts_with_xbindkeys:create_a_default_configuration_file [2021/10/25 22:01] (current) peter
Line 1: Line 1:
 ====== Ubuntu - Mouse - Mouse shortcuts with xbindkeys - Create a Default Configuration file ====== ====== Ubuntu - Mouse - Mouse shortcuts with xbindkeys - Create a Default Configuration file ======
 +
 +===== Create a Configuration file automatically =====
  
 <code bash> <code bash>
 xbindkeys --defaults > $HOME/.xbindkeysrc xbindkeys --defaults > $HOME/.xbindkeysrc
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  The **$HOME/.xbindkeysrc** file could also be created manually.
 +</WRAP>
 +
 +----
 +
 +===== Check the $HOME/.xbindkeysrc file =====
 +
 +<file bash>
 +# 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 #
 +##################################
 +</file>
 +
 +<WRAP info>
 +**NOTE:**  Almost every line in the file is commented out by default.
 +
 +  * But this provides examples of what can be configured.
 +</WRAP>
  
ubuntu/mouse/mouse_shortcuts_with_xbindkeys/create_a_default_configuration_file.1635161952.txt.gz · Last modified: 2021/10/25 11:39 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki